Skip to main content

Crate photon_telemetry

Crate photon_telemetry 

Source
Expand description

Operations telemetry port for Photon.

Hosts install a process-wide OpsLog via install_ops_log or PhotonBuilder::ops_log. Backend instrumentation (publish counters, DLQ rows, checkpoint failures) calls ops_log.

§Entry points

Runnable: cargo run -p uf-photon --example telemetry_ops_log --features runtime,mem.

Structs§

ConsoleOpsLog
stderr/stdout structured lines (default dev adapter).
NoOpsLog
Zero-cost no-op (benchmark telemetry=off and minimal CI).
RecordedCounter
Captured counter increment.
RecordedEvent
Captured structured event.
RecordedGauge
Captured gauge sample.
RecordingOpsLog
Append-only in-memory ops log for assertions in unit/integration tests.

Traits§

OpsLog
Structured ops metrics/events for publish, drain, DLQ, checkpoints.

Functions§

install_ops_log
Install the process-wide ops log (typically at server boot before Photon runtime).
ops_log
Resolved ops log — NoOpsLog until install_ops_log.
ops_log_from_env
Resolve from PHOTON_TELEMETRY (off | console; default console).