Documentation ¶ Index ¶ func InjectTraceAndRequestID(ctx context.Context, header http.Header) http.Header type HttpClientConfig type SSEClientConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func InjectTraceAndRequestID ¶ func InjectTraceAndRequestID(ctx context.Context, header http.Header) http.Header InjectTraceAndRequestID injects trace context and request id headers. Trace headers are injected from ctx and will overwrite an existing traceparent when span context is valid. Types ¶ type HttpClientConfig ¶ type HttpClientConfig struct { Module string `yaml:"module"` Host string `yaml:"host"` Timeout time.Duration `yaml:"timeout"` MaxRetry int `yaml:"max_retry"` } type SSEClientConfig ¶ type SSEClientConfig struct { Module string `yaml:"service"` Host string `yaml:"host"` RetryWaitTime time.Duration `yaml:"retry_timeout"` MaxRetry int `yaml:"max_retry"` } Source Files ¶ View all Source files http.gootel.go Directories ¶ Show internal Expand all Path Synopsis ghttp gresty Click to show internal directories. Click to hide internal directories.