Documentation ¶
Overview ¶
Package trace provides a wrapper around OpenTelemetry's trace API with support for goroutine-bound context propagation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentContext ¶
CurrentContext returns the current goroutine-local context, or context.Background() if there is no current context.
Types ¶
type Tracer ¶
type Tracer interface { trace.Tracer // Continue is like Start, but starts the new span using the context from CurrentContext(). Continue(spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span) }
Tracer wraps trace.Tracer to support goroutine-bound context propagation.
Click to show internal directories.
Click to hide internal directories.