tracing

package
v0.0.0-...-d4abf01 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExporterJaeger = "jaeger"
	ExporterTempo  = "tempo"
)

Variables

This section is empty.

Functions

func InitOtelTracer

func InitOtelTracer(serviceName string)

func InitTracer

func InitTracer(endpoint, exporter, serviceName, env, id string)

func TraceFunc

func TraceFunc(ctx context.Context, spanName string, do func(ctx context.Context, span trace.Span))

Types

type TempoConfig

type TempoConfig struct {
	Endpoint    string `json:"endpoint"`
	ServiceName string `json:"serviceName"`
}

Jump to

Keyboard shortcuts

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