tracing

package
v1.8.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoInSpan

func DoInSpan(ctx context.Context, tracerName string, operationName string, doFn func(context.Context))

DoInSpan executes function doFn inside new span with `operationName` name and hooking as child to a span found within given context if any.

func NewTraceConfig

func NewTraceConfig(endpoint string, certs string, kubeClient kubernetes.Interface, log logr.Logger) (*sdktrace.TracerProvider, error)

NewTraceConfig generates the initial tracing configuration with 'endpoint' as the endpoint to connect to the Opentelemetry Collector

func ShutDownController

func ShutDownController(ctx context.Context, tp *sdktrace.TracerProvider)

func StartSpan

func StartSpan(ctx context.Context, tracerName string, operationName string, attributes []attribute.KeyValue) trace.Span

StartSpan creates a span from a context with `operationName` name

Types

This section is empty.

Jump to

Keyboard shortcuts

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