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
OpsLog— counter / gauge / event traitinstall_ops_log/ops_log/ops_log_from_env— process-wide adapterConsoleOpsLog/NoOpsLog— shipped adapters
Runnable: cargo run -p uf-photon --example telemetry_ops_log --features runtime,mem.
Structs§
- Console
OpsLog - stderr/stdout structured lines (default dev adapter).
- NoOps
Log - Zero-cost no-op (benchmark
telemetry=offand minimal CI). - Recorded
Counter - Captured counter increment.
- Recorded
Event - Captured structured event.
- Recorded
Gauge - Captured gauge sample.
- Recording
OpsLog - 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 —
NoOpsLoguntilinstall_ops_log. - ops_
log_ from_ env - Resolve from
PHOTON_TELEMETRY(off|console; defaultconsole).