Documentation ¶
Index ¶
- func NewProvider(ctx context.Context, tracingConfig *v1.TracingConfiguration, ...) (oteltrace.TracerProvider, error)
- func Propagators() propagation.TextMapPropagator
- func WithTracing(handler http.Handler, tp oteltrace.TracerProvider, serviceName string) http.Handler
- func WrapperFor(tp oteltrace.TracerProvider) transport.WrapperFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(ctx context.Context, tracingConfig *v1.TracingConfiguration, addedOpts []otlpgrpc.Option, resourceOpts []resource.Option, ) (oteltrace.TracerProvider, error)
NewProvider creates a TracerProvider in a component, and enforces recommended tracing behavior
func Propagators ¶
func Propagators() propagation.TextMapPropagator
Propagators returns the recommended set of propagators.
func WithTracing ¶
func WithTracing(handler http.Handler, tp oteltrace.TracerProvider, serviceName string) http.Handler
WithTracing adds tracing to requests if the incoming request is sampled
func WrapperFor ¶
func WrapperFor(tp oteltrace.TracerProvider) transport.WrapperFunc
WrapperFor can be used to add tracing to a *rest.Config. Example usage: tp := NewProvider(...) config, _ := rest.InClusterConfig() config.Wrap(WrapperFor(&tp)) kubeclient, _ := clientset.NewForConfig(config)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.