Documentation ¶
Overview ¶
Package oteltracehttp provides common functions for attaching values to trace spans
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupOtelHTTP ¶
SetupOtelHTTP creates a new trace provider instance and registers it as global trace provider.
Types ¶
type Config ¶
type Config struct { CollectorEndpoint string `json:"collector_endpoint,omitempty" toml:"collector_endpoint,omitempty"` ServiceName string `json:"service_name,omitempty" toml:"service_name,omitempty"` SpanCollectionProbability float64 `json:"spanCollectionProbability,omitempty" toml:"span_collection_probability,omitempty"` // contains filtered or unexported fields }
Config contains settings related to tracing.
Click to show internal directories.
Click to hide internal directories.