trace

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTracer

func GetTracer() trace.Tracer

GetTracer returns the global tracer instance.

func Init

func Init(ctx context.Context, endpoint, serviceName string) (func(context.Context) error, error)

Init initializes the global OpenTelemetry tracer. It returns a shutdown function that should be called when the application exits.

func StartSpan

func StartSpan(ctx context.Context, name string) (context.Context, 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