Documentation
¶
Overview ¶
Package traceutil adapts model.Tracer to plain OpenTelemetry interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fail ¶ added in v0.6.13
Fail records a non-nil err, ends the span and returns err; success paths must call span.End() themselves.
func LiveProvider ¶
func LiveProvider(t model.Tracer) trace.TracerProvider
LiveProvider re-resolves the provider on every span, so libraries that cache their tracer at construction survive a tracing restart (a retired provider silently drops spans). Each Start costs a lock and map lookup; measure before using on a per-request path.
Types ¶
This section is empty.