Documentation
¶
Overview ¶
Package tracing provides OpenTelemetry tracing initialization and helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracer ¶
func InitTracer( ctx context.Context, serviceName string, cfg config.TracingConfig, attrs ...attribute.KeyValue, ) (func(context.Context) error, error)
InitTracer initializes the OpenTelemetry tracer provider. It always sets the global W3C TraceContext propagator. When tracing is disabled, a noop provider is used. Returns a shutdown function that must be called on exit.
Types ¶
This section is empty.