otel

package
v0.0.0-...-94d1a5b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracing

func InitTracing(ctx context.Context, otelOpts Options) error

Types

type Options

type Options struct {
	// ServiceName contains the service name for telemetry. It must be non-empty.
	ServiceName string
	// IsProduction indicates whether we're running in production mode. If nil,
	// the value is determined by checking if the ENV environment variable equals
	// "production"
	IsProduction *bool
	// Endpoint for the OTEL server. If empty, it's read from the OTEL_HTTP_ENDPOINT
	// environment variable, defaulting to localhost:4318 if not provided
	Endpoint string
	// AuthToken indicates the token for authenticating with the OTEL server. If empty, the value of the
	// OTEL_AUTH_TOKEN environment variable is used instead
	AuthToken string
}

Jump to

Keyboard shortcuts

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