Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTracerProvider ¶
func NewTracerProvider(serviceName string, defaultSampler sdktrace.Sampler, exporter sdktrace.SpanExporter) (trace.TracerProvider, error)
NewTracerProvider configures a Tracer that will only trace if the parent has tracing enabled or if based on defaultSampler, when the parent has no tracing configured
func OtelTracerMiddleware ¶
func OtelTracerMiddleware(operation string, tp trace.TracerProvider, propagator propagation.TextMapPropagator) mux.MiddlewareFunc
OtelTracerMiddleware sends open telemetry traces to a configured exporter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.