Documentation ¶
Overview ¶
Package noop provides support for NOOP (No Operation) request tracing mechanisms.
Index ¶
- type Span
- type Tracer
- func (t *Tracer) ContextWithSpan(ctx context.Context, span trace.Span) context.Context
- func (t *Tracer) Dispose()
- func (t *Tracer) ExtractSpan(name string, format interface{}, carrier interface{}) (trace.Span, error)
- func (t *Tracer) InjectSpan(s trace.Span, format interface{}, carrier interface{}) error
- func (t *Tracer) SpanFromContext(ctx context.Context) trace.Span
- func (t *Tracer) StartSpan(name string) trace.Span
- func (t *Tracer) StartSpanFromContext(ctx context.Context, name string) (trace.Span, context.Context)
- func (t *Tracer) StartSpanWithParent(name string, parent trace.Span) trace.Span
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Span ¶
type Span struct{}
Span represents tracing span based on NOOP request tracing.
func (*Span) LogWithFields ¶
LogWithFields logs tracing span with event name and fields.
type Tracer ¶
type Tracer struct{}
Tracer represents tracing mechanism based on NOOP request tracing.
func NewTracer ¶
func NewTracer() *Tracer
NewTracer creates an instance of tracer based on NOOP request tracing.
func (*Tracer) ContextWithSpan ¶
ContextWithSpan creates context with tracing span.
func (*Tracer) ExtractSpan ¶
func (t *Tracer) ExtractSpan(name string, format interface{}, carrier interface{}) (trace.Span, error)
ExtractSpan extracts tracing span in particular format from carrier.
func (*Tracer) InjectSpan ¶
InjectSpan injects tracing span in particular format into carrier.
func (*Tracer) SpanFromContext ¶
SpanFromContext creates tracing span from context.
Click to show internal directories.
Click to hide internal directories.