Skip to main content

Module EmitOTLPSpan

Module EmitOTLPSpan 

Source
Expand description

Fire-and-forget OTLP span exporter. Lifted from Mountain’s IPC/DevLog/EmitOTLPSpan so Air / Echo / Rest / Grove / Mist / SideCar all share the same raw HTTP path. Single failed POST flips OTLP_AVAILABLE to false so a missing collector doesn’t tax every emit. Release builds compile out via cfg!(debug_assertions).

Statics§

OTLP_AVAILABLE 🔒
OTLP_TRACE_ID 🔒

Functions§

Fn
Emit one span. StartNano / EndNano are wall-clock (not monotonic) nanosecond timestamps - use NowNano() from the caller’s start.
NowNano 🔒
NowNanoPub
Helper exposed to callers that need a span window timestamp.
ParseEndpoint 🔒
RandU64 🔒
TraceId 🔒