otelx

package
v0.0.0-...-b7dbb59 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Tracer is the global tracer.
	Tracer = otel.Tracer("")
)

Functions

func SetupOTelSDK

func SetupOTelSDK(
	ctx context.Context,
	serviceName string,
	target string,
) (shutdown func(context.Context) error, err error)

SetupOTelSDK sets up the OpenTelemetry SDK with the Jaeger exporter.

func StartSpan

func StartSpan(ctx contextx.Contextx, name string) (contextx.Contextx, trace.Span)

StartSpan starts a new span with the given name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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