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 Follow ¶ added in v0.9.5
func Follow(current func() trace.TracerProvider) trace.TracerProvider
Follow is a provider that resolves current on every span, so a Tracer kept from it follows whatever current returns then: how the tracing service's Provider stays the same across a restart that swaps its pipeline. Each Start costs current and the provider's own Tracer lookup.
func LiveProvider ¶
func LiveProvider(t model.Tracer) trace.TracerProvider
LiveProvider follows t's Provider, for a model.Tracer that replaces it; the tracing service's own Provider follows its restarts already.
Types ¶
This section is empty.