telemetry

package
v0.0.0-...-173b5ff Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TracerName  = "litmuschaos.io/chaos-runner"
	TraceParent = "TRACE_PARENT"
)
View Source
const OTELExporterOTLPEndpoint = "OTEL_EXPORTER_OTLP_ENDPOINT"

TODO: change endpoint to be configurable

View Source
const OTELServiceName = "chaos_runner"

Variables

This section is empty.

Functions

func GetMarshalledSpanFromContext

func GetMarshalledSpanFromContext(ctx context.Context) string

GetMarshalledSpanFromContext Extract spanContext from the context and return it as json encoded string

func GetTraceParentContext

func GetTraceParentContext() context.Context

func InitOTelSDK

func InitOTelSDK(ctx context.Context, endpoint string) (shutdown func(context.Context) error, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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