Documentation ¶
Index ¶
- Variables
- func ContextGetTracerProvider(ctx context.Context) trace.TracerProvider
- func ContextSetTracerProvider(ctx context.Context, p trace.TracerProvider) context.Context
- func DefaultProvider() trace.TracerProvider
- func GetTracerProvider(enabled bool, collectorEndpoint string, agentEndpoint, serviceName string) trace.TracerProvider
- func InitDefaultTracerProvider(collectorEndpoint string, agentEndpoint string)
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
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
InitDefaultTracerProvider initializes a global default TracerProvider at a package level.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.