component-basek8s.io/component-base/traces Index | Files

package traces

import "k8s.io/component-base/traces"

Index

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)

Source Files

utils.go

Version
v0.23.6
Published
Apr 20, 2022
Platform
js/wasm
Imports
11 packages
Last checked
now

Tools for package owners.