Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init configures the global OpenTelemetry tracer provider. The exporter is selected via OTEL_TRACES_EXPORTER / OTEL_EXPORTER_OTLP_ENDPOINT. On any error, tracing is silently disabled — it must never block updatecli.
func RecordSpanError ¶
RecordSpanError records a sanitized error on a span and sets its status to Error. Use this instead of raw span.RecordError + span.SetStatus to prevent credential leaks.
func SanitizeError ¶
SanitizeError strips URL-embedded credentials from an error message to prevent tokens from leaking into span status descriptions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.