Repository navigation
feat(realtime): report worker uptime gauge - #15114
ArnabChatterjee20k merged 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review complete. No issues found — approved ✅. This change instruments the realtime worker with an observable uptime gauge, reported on every metrics collect so even an idle or stalled worker shows up in telemetry. It is guarded against the
Reviewed commit: ee6269a |
🟢 Tier S · Ready to mergeAdds an observable
📂 Walkthrough · 1
🔇 Filtered out · 1Findings Hansi considered but did not post.
Reviewed |
c581964
into
fix/realtime-permission-ingest-fail-closed
Security rulesNo new WARNING or ERROR findings from security rules. 6 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Issue / Description
Closes #15108. Stacked on #15086.
Every realtime server metric is a counter or histogram, recorded only when something happens. A worker that is up but not processing anything exports nothing, which looks exactly like a quiet region. A freshly rolled worker is invisible until traffic arrives.
Solution
Adds
realtime.server.uptime: an observable gauge of the seconds since the realtime worker started, tagged with the worker id. It is observed on every telemetry collect, whatever the traffic, and resets to zero on restart. It mirrorsmqtt.server.uptimeinapp/mqtt.php.With it, alerts can tell three cases apart:
realtime.server.message.sentstays flatTests
php -land Pint onapp/realtime.php.app/harness, which isn't unit-tested, and the MQTT gauge it mirrors has none either.🤖 Generated with Claude Code