Expand description
Valence self-telemetry port.
Audience: integrators installing metrics at boot and adapter authors implementing custom sinks.
Structs§
- Console
Sink - Writes telemetry to stderr (development and bench).
- NoOp
Sink - Discards all telemetry (default for tests and minimal hosts).
- Recorded
Counter - Captured counter increment.
- Recorded
Event - Captured structured log event.
- Recorded
Gauge - Captured gauge sample.
- Recording
Sink - Append-only in-memory sink for assertions in unit and integration tests.
Traits§
- Telemetry
Sink - Host-injectable telemetry sink for Valence ORM metrics and events.
Functions§
- install_
telemetry_ sink - Install the process-wide Valence telemetry sink (tests and host boot).
- json_
value_ to_ fields - Flatten a JSON object into string field pairs for sinks that only store tuples.
- telemetry_
sink - Current sink, or
NoOpSinkwhen none is installed. - try_
log_ event - Emit a structured event from flat field tuples.
- try_
log_ event_ value - Emit a structured event from a JSON payload (instrumentation default).
- try_
record_ counter - Emit a counter when a sink is installed.
- try_
record_ gauge - Emit a gauge when a sink is installed.