observability

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTextMapPropagator

func NewTextMapPropagator(additional ...propagation.TextMapPropagator) propagation.TextMapPropagator

NewTextMapPropagator returns a default propagator, that will connect all components with the same mechanism. It should be used in all places that require a propagator. Receives an optional list of additional propagators, that will added to the default one. Use this only for some specific cases (usually for integration with third-party or old systems).

Types

type Propagator

type Propagator interface {
	Inject(ctx context.Context, headers http.Header)
	Extract(ctx context.Context, headers http.Header) context.Context
}

func NewPropagator

func NewPropagator() Propagator

type Span

type Span interface {
	End()
}

type SpanKind

type SpanKind uint8
const (
	SpanKindClient SpanKind = iota + 1
	SpanKindServer
)

type Tracer

type Tracer interface {
	Start(ctx context.Context, name string) (context.Context, Span)
}

type TracerProvider

type TracerProvider interface {
	Tracer(name string) Tracer
}

func NewTracerProvider

func NewTracerProvider(kind SpanKind) TracerProvider

Jump to

Keyboard shortcuts

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