traces

package
v0.22.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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