Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(ctx context.Context, baseSampler sdktrace.Sampler, resourceOpts []resource.Option, opts ...otlpgrpc.Option) trace.TracerProvider
NewProvider initializes tracing in the component, and enforces recommended tracing behavior.
func Propagators ¶
func Propagators() propagation.TextMapPropagator
Propagators returns the recommended set of propagators.
func WrapperFor ¶
func WrapperFor(tp *trace.TracerProvider) transport.WrapperFunc
WrapperFor can be used to add tracing to a *rest.Config. Example usage:
tp := traces.NewProvider(...) config, _ := rest.InClusterConfig() config.Wrap(traces.WrapperFor(&tp)) kubeclient, _ := clientset.NewForConfig(config)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.