internal

package
v1.60.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func GetGlobalTracer() ddtrace.Tracer

GetGlobalTracer returns the currently active tracer.

func SetGlobalTracer

func SetGlobalTracer(t ddtrace.Tracer)

SetGlobalTracer sets the global tracer to t.

Types

type NoopSpan

type NoopSpan struct{}

NoopSpan is an implementation of ddtrace.Span that is a no-op.

func (NoopSpan) BaggageItem

func (NoopSpan) BaggageItem(_ string) string

BaggageItem implements ddtrace.Span.

func (NoopSpan) Context

func (NoopSpan) Context() ddtrace.SpanContext

Context implements ddtrace.Span.

func (NoopSpan) Finish

func (NoopSpan) Finish(_ ...ddtrace.FinishOption)

Finish implements ddtrace.Span.

func (NoopSpan) SetBaggageItem

func (NoopSpan) SetBaggageItem(_, _ string)

SetBaggageItem implements ddtrace.Span.

func (NoopSpan) SetOperationName

func (NoopSpan) SetOperationName(_ string)

SetOperationName implements ddtrace.Span.

func (NoopSpan) SetTag

func (NoopSpan) SetTag(_ string, _ interface{})

SetTag implements ddtrace.Span.

func (NoopSpan) Tracer

func (NoopSpan) Tracer() ddtrace.Tracer

Tracer implements ddtrace.Span.

type NoopSpanContext

type NoopSpanContext struct{}

NoopSpanContext is an implementation of ddtrace.SpanContext that is a no-op.

func (NoopSpanContext) ForeachBaggageItem

func (NoopSpanContext) ForeachBaggageItem(_ func(k, v string) bool)

ForeachBaggageItem implements ddtrace.SpanContext.

func (NoopSpanContext) SpanID

func (NoopSpanContext) SpanID() uint64

SpanID implements ddtrace.SpanContext.

func (NoopSpanContext) TraceID

func (NoopSpanContext) TraceID() uint64

TraceID implements ddtrace.SpanContext.

type NoopTracer

type NoopTracer struct{}

NoopTracer is an implementation of ddtrace.Tracer that is a no-op.

func (NoopTracer) Extract

func (NoopTracer) Extract(_ interface{}) (ddtrace.SpanContext, error)

Extract implements ddtrace.Tracer.

func (NoopTracer) Inject

func (NoopTracer) Inject(_ ddtrace.SpanContext, _ interface{}) error

Inject implements ddtrace.Tracer.

func (NoopTracer) SetServiceInfo

func (NoopTracer) SetServiceInfo(_, _, _ string)

SetServiceInfo implements ddtrace.Tracer.

func (NoopTracer) StartSpan

func (NoopTracer) StartSpan(_ string, _ ...ddtrace.StartSpanOption) ddtrace.Span

StartSpan implements ddtrace.Tracer.

func (NoopTracer) Stop

func (NoopTracer) Stop()

Stop implements ddtrace.Tracer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL