Documentation ¶
Overview ¶
Package tracer provides mechanisms to propagate tracer in context.
Index ¶
- func FromContext(ctx context.Context) otrace.Tracer
- func NewContext(ctx context.Context, t otrace.Tracer) context.Context
- func NewContextWithTracer(ctx context.Context, name string, opts ...otrace.TracerOption) context.Context
- func StartFromContext(ctx context.Context, name string, opts ...otrace.SpanStartOption) (context.Context, otrace.Span)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext returns the tracer that is attatched to the context or returns a new anonymous tracer if it does not exist.
func NewContext ¶
NewContext returns a derived context with the tracer set.
func NewContextWithTracer ¶
func NewContextWithTracer(ctx context.Context, name string, opts ...otrace.TracerOption) context.Context
NewContextWithTracer returns a derived context with a new tracer set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.