otel

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoopSpan trace.Span = noopSpan{}

Functions

func ContextFromTraceContext

func ContextFromTraceContext(ctx context.Context, traceContext string) context.Context

func InitializeTracer

func InitializeTracer(ctx context.Context) (*sdktrace.TracerProvider, error)

func NewNoopTracerProvider deprecated

func NewNoopTracerProvider() trace.TracerProvider

NewNoopTracerProvider returns an implementation of TracerProvider that performs no operations. The Tracer and Spans created from the returned TracerProvider also perform no operations.

Deprecated: Use go.opentelemetry.io/otel/trace/noop.NewTracerProvider instead.

func TraceContextFromContext

func TraceContextFromContext(ctx context.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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