Expand description
Tracing transport for ObservabilityEvent.
All events are emitted as a single tracing::info! call under the
rig_tap target. The legacy event field carries the JSON-encoded
envelope, while stable scalar rig_tap.* fields make OpenTelemetry
collector routing and indexing possible without JSON parsing.
Constants§
- EVENT_
TARGET - Target string used on every
rig_tapevent.
Functions§
- build_
event - Build a fully-formed
ObservabilityEventforkindbelonging toconversation_id, stamped with the next tick and current wall time. - current_
span_ id - Return the numeric id of the currently-active
tracing::Span, if any. - emit
- Emit
eventover therig_taptracing target. Serialization failures are logged atwarnlevel under the same target and otherwise swallowed so that telemetry never panics the agent loop. - emit_
kind - Convenience: build + emit in one call.
- next_
tick - Return the next monotonic per-process tick.
- now_
millis - Return the current wall-clock time in milliseconds since the Unix epoch.
Returns
0if the clock is set before the epoch. - try_
emit - Emit
eventover therig_taptracing target as a singleinfo!-level event carrying a JSON-encodedeventfield.