tracing

package
v0.0.0-...-52092a1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tracer = otel.Tracer(name)
	Meter  = otel.Meter(name)
	Logger = otelslog.NewLogger(name)
)

Functions

func RecordError

func RecordError(ctx context.Context, err error)

RecordError records an error on the span and sets the status to Error.

func SetupOtelSDK

func SetupOtelSDK(ctx context.Context) (shutdown func(context.Context) error, err error)

SetupOtelSDK bootstraps the OpenTelemetry pipeline. If it does not return an error, make sure to call shutdown for proper cleanup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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