opentelemetry

package
v1.9.47 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagNameOpentelemetryEnabled = "opentelemetry.enabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenTelemetry

type OpenTelemetry struct {
	Tracer tracer.Tracer
	Ctx    context.Context
	Logger *slog.Logger
	// contains filtered or unexported fields
}
var (
	FlagOpentelemetryEnabled = common.SystemFlagBool(FlagNameOpentelemetryEnabled, true, "OpenTelemetry enabled")
	Telemetry                *OpenTelemetry
)

func NewTelemetry

func NewTelemetry(ctx context.Context) (*OpenTelemetry, error)

func (*OpenTelemetry) Shutdown

func (t *OpenTelemetry) Shutdown() error

type OpenTelemetrySpan

type OpenTelemetrySpan struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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