Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetTraceProvider ¶
func SetTraceProvider(ctx context.Context, service string, opts ...otlptracegrpc.Option) (func(context.Context) error, error)
SetTraceProvider initializes the OpenTelemetry SDK. It returns a shutdown function that should be called when the application exits.
func WithGCPCredentials ¶
func WithGCPCredentials() otlptracegrpc.Option
WithGCPCredentials returns an option that configures the OTLP exporter to use Google Cloud credentials.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.