Documentation ¶
Index ¶
- func DoInSpan(ctx context.Context, tracerName string, operationName string, ...)
- func NewTraceConfig(endpoint string, certs string, kubeClient kubernetes.Interface, ...) (*sdktrace.TracerProvider, error)
- func ShutDownController(ctx context.Context, tp *sdktrace.TracerProvider)
- func StartSpan(ctx context.Context, tracerName string, operationName string, ...) trace.Span
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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.