trace

package
v2.41.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Propagator is the default Reva propagator.
	Propagator = propagation.NewCompositeTextMapPropagator(propagation.Baggage{}, propagation.TraceContext{})
)

Functions

func ContextGetTracerProvider

func ContextGetTracerProvider(ctx context.Context) trace.TracerProvider

ContextGetTracerProvider returns the TracerProvider associated with the ctx. If no TracerProvider is associated is associated, the global default TracerProvider is returned

func ContextSetTracerProvider

func ContextSetTracerProvider(ctx context.Context, p trace.TracerProvider) context.Context

ContextSetTracerProvider returns a copy of ctx with p associated.

func DefaultProvider

func DefaultProvider() trace.TracerProvider

DefaultProvider returns the "global" default TracerProvider Currently used by the pool to get the global tracer

func NewTracerProvider

func NewTracerProvider(serviceName, exporter string) trace.TracerProvider

NewTracerProvider returns a new TracerProvider, configured for the specified service

func SetDefaultTracerProvider

func SetDefaultTracerProvider(tp trace.TracerProvider)

SetDefaultTracerProvider sets the default trace provider

Types

This section is empty.

Jump to

Keyboard shortcuts

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