trace

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 12 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 added in v2.6.0

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 added in v2.6.0

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

ContextSetTracerProvider returns a copy of ctx with p associated.

func DefaultProvider added in v2.6.0

func DefaultProvider() trace.TracerProvider

DefaultProvider returns the "global" default TracerProvider

func GetTracerProvider added in v2.6.0

func GetTracerProvider(enabled bool, collectorEndpoint string, agentEndpoint, serviceName string) trace.TracerProvider

GetTracerProvider returns a new TracerProvider, configure for the specified service

func InitDefaultTracerProvider added in v2.6.0

func InitDefaultTracerProvider(collectorEndpoint string, agentEndpoint string)

InitDefaultTracerProvider initializes a global default TracerProvider at a package level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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