Documentation ¶
Overview ¶
Package tracing //
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoopSpan ¶
type NoopSpan struct{}
NoopSpan is a no-op implementation of Span
func (*NoopSpan) SetAttibutes ¶
SetAttibutes sets the attributes for the noop-span
type Span ¶
type Span interface { End() SetAttibutes(key string, value interface{}) }
Span interface implements the trace span returned by Tracer.
type Tracer ¶
type Tracer interface { // StartSpan starts a trace span. Span can be a parent or child span based on the passed context. StartSpan(ctx context.Context, tracerName, spanName string) (context.Context, Span) }
Tracer provides the necessary method to collect telemetry trace data. Tracer should not depend on any specific tool. To make it possible it returns a Span interface.
func NewOtelTracer ¶
NewOtelTracer returns a new instance of Tracer
Click to show internal directories.
Click to hide internal directories.