Documentation
¶
Overview ¶
Package telemetry provides functions for initializing and managing telemetry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracer ¶
func InitTracer(ctx context.Context, serviceName string, version string, writer io.Writer) (func(context.Context) error, error)
InitTracer initializes the OpenTelemetry tracer provider. It writes traces to the provided writer (e.g., os.Stderr). It returns a shutdown function that should be called when the application exits.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.