instruments

package
v1.7.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OtelEnable, _ = strconv.ParseBool(os.Getenv("OTEL_ENABLE"))
)

Functions

func ExtractTraceID

func ExtractTraceID(ctx context.Context) trace.TraceID

Extracts traceID from a Context

func InitProvider

func InitProvider() (func(context.Context) error, error)

Initializes an OTLP exporter, and configures the corresponding trace and metric providers.

func SpanNameFormatter

func SpanNameFormatter(_ string, r *http.Request) string

Set a custom trace span name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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