Documentation
¶
Index ¶
Constants ¶
View Source
const ( SpanId = "span_id" Id = "trace_id" Sampled = "sampled" )
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
Types ¶
type Config ¶
type Config struct {
RequestIdHeader string
RequestIdFunc
tracing.NewFunc
}
func TraceConfig ¶
func TraceConfig() *Config
type Option ¶
type Option func(c *Config)
func WithNewFunc ¶
func WithRequestIdFunc ¶
func WithRequestIdFunc(f RequestIdFunc) Option
func WithRequestIdHeader ¶
type TracingContext ¶
func Context ¶
func Context(ctx context.Context) *TracingContext
Click to show internal directories.
Click to hide internal directories.