Documentation ¶
Overview ¶
Package traces provides helper functions for tracing with OpenTelemetry SDK.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracerProvider ¶
func InitTracerProvider(log logging.Logger, otelCollectorAddress string, dialTimeout, exportInterval time.Duration) (func(context.Context), error)
InitTracerProvider configures a global tracer provider and dials to the OTEL Collector. Failing in doing so returns an error since service actively export their traces and require the Collector to be up. Returns a shutdown function that should be called at the end of the program to flush all in-momory traces.
func SetAndRecordError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.