Documentation ¶
Index ¶
- Variables
- func GetGlobalTracer() pobptrace.Tracer
- func SetGlobalTracer(t pobptrace.Tracer)
- type NoopSpan
- func (NoopSpan) BaggageItem(key string) string
- func (NoopSpan) Context() pobptrace.SpanContext
- func (NoopSpan) Finish(opts ...pobptrace.FinishOption)
- func (NoopSpan) SetBaggageItem(key, val string)
- func (NoopSpan) SetOperationName(operationName string)
- func (NoopSpan) SetTag(key string, value interface{})
- func (NoopSpan) Tracer() pobptrace.Tracer
- type NoopSpanContext
- type NoopTracer
- func (NoopTracer) Extract(carrier interface{}) (pobptrace.SpanContext, error)
- func (NoopTracer) Inject(context pobptrace.SpanContext, carrier interface{}) error
- func (NoopTracer) SetServiceInfo(name, app, appType string)
- func (NoopTracer) StartSpan(operationName string, opts ...pobptrace.StartSpanOption) pobptrace.Span
- func (NoopTracer) Stop()
Constants ¶
This section is empty.
Variables ¶
var Testing = false
Testing is set to true when the mock tracer is active. It usually signifies that we are in a test environment. This value is used by tracer.Start to prevent overriding the GlobalTracer in tests.
Functions ¶
func GetGlobalTracer ¶
GetGlobalTracer returns the currently active tracer.
func SetGlobalTracer ¶
SetGlobalTracer sets the global tracer to t.
Types ¶
type NoopSpan ¶
type NoopSpan struct{}
NoopSpan is an implementation of pobptrace.Span that is a no-op.
func (NoopSpan) BaggageItem ¶
BaggageItem implements pobptrace.Span.
func (NoopSpan) Context ¶
func (NoopSpan) Context() pobptrace.SpanContext
Context implements pobptrace.Span.
func (NoopSpan) Finish ¶
func (NoopSpan) Finish(opts ...pobptrace.FinishOption)
Finish implements pobptrace.Span.
func (NoopSpan) SetBaggageItem ¶
SetBaggageItem implements pobptrace.Span.
func (NoopSpan) SetOperationName ¶
SetOperationName implements pobptrace.Span.
type NoopSpanContext ¶
type NoopSpanContext struct{}
NoopSpanContext is an implementation of pobptrace.SpanContext that is a no-op.
func (NoopSpanContext) ForeachBaggageItem ¶
func (NoopSpanContext) ForeachBaggageItem(handler func(k, v string) bool)
ForeachBaggageItem implements pobptrace.SpanContext.
func (NoopSpanContext) SpanID ¶
func (NoopSpanContext) SpanID() uint64
SpanID implements pobptrace.SpanContext.
func (NoopSpanContext) TraceID ¶
func (NoopSpanContext) TraceID() uint64
TraceID implements pobptrace.SpanContext.
type NoopTracer ¶
type NoopTracer struct{}
NoopTracer is an implementation of pobptrace.Tracer that is a no-op.
func (NoopTracer) Extract ¶
func (NoopTracer) Extract(carrier interface{}) (pobptrace.SpanContext, error)
Extract implements pobptrace.Tracer.
func (NoopTracer) Inject ¶
func (NoopTracer) Inject(context pobptrace.SpanContext, carrier interface{}) error
Inject implements pobptrace.Tracer.
func (NoopTracer) SetServiceInfo ¶
func (NoopTracer) SetServiceInfo(name, app, appType string)
SetServiceInfo implements pobptrace.Tracer.
func (NoopTracer) StartSpan ¶
func (NoopTracer) StartSpan(operationName string, opts ...pobptrace.StartSpanOption) pobptrace.Span
StartSpan implements pobptrace.Tracer.