Help us shape the future of Go! Take the 2026 Go Developer Survey

tracing

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoopTracer = NewTracer(noop.NewTracerProvider(), nil)
)

Functions

func Enabled added in v1.0.1

func Enabled(name string) bool

func Init added in v1.0.1

func Init(conf *modules.TracingConfig) error

func Start

func Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

Types

type Tracer

type Tracer struct {
	trace.TracerProvider
	// contains filtered or unexported fields
}

func GetTracer added in v1.0.1

func GetTracer() *Tracer

func NewTracer

func NewTracer(tp trace.TracerProvider, instrumentations []string) *Tracer

func (*Tracer) Enabled added in v1.0.1

func (t *Tracer) Enabled(name string) bool

func (*Tracer) Start

func (t *Tracer) Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

func (*Tracer) Stop

func (t *Tracer) Stop(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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