trace

package
v2.52.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 11 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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