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 InitDefaultTracerProvider(collector, endpoint string)deprecated
- func NewTracerProvider(opts ...Option) trace.TracerProvider
- func SetDefaultTracerProvider(tp trace.TracerProvider)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
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 Currently used by the pool to get the global tracer
func InitDefaultTracerProvider
deprecated
added in
v2.6.0
func InitDefaultTracerProvider(collector, endpoint string)
InitDefaultTracerProvider initializes a global default jaeger TracerProvider at a package level.
Deprecated: Use NewTracerProvider and SetDefaultTracerProvider to properly initialize a tracer provider with options
func NewTracerProvider ¶ added in v2.14.0
func NewTracerProvider(opts ...Option) trace.TracerProvider
NewTracerProvider returns a new TracerProvider, configure for the specified service
func SetDefaultTracerProvider ¶ added in v2.14.0
func SetDefaultTracerProvider(tp trace.TracerProvider)
SetDefaultTracerProvider sets the default trace provider
Types ¶
type Option ¶ added in v2.14.0
type Option func(o *Options)
Option for trace
func WithServiceName ¶ added in v2.14.0
WithServiceName option
type Options ¶ added in v2.14.0
type Options struct { Enabled bool Insecure bool Exporter string Collector string Endpoint string ServiceName string TransportCredentials credentials.TransportCredentials }
Options for trace