Skip to content

Realtime: telemetry for the pub/sub event handler #15107

Closed

Description

@ArnabChatterjee20k

Context

The realtime pub/sub handler has no telemetry of its own. When it stops delivering events while the subscriber connection stays up, nothing says where events are lost. The arrival-delay and delivery-delay catch (\Throwable) {} blocks also drop failures without a trace.

Goal

Telemetry instruments, in the style of the MQTT broker's:

  • counters for events received, dropped (with a reason) and failed (with a stage)
  • an observable gauge of how long the event being handled has been in its current step

Activity

  1. added
    api / realtime
    product / databases
    product / vcs
    on Oct 30, 2026
  2. changed the title [-]Realtime: heartbeat span for the pub/sub subscriber[/-] [+]Realtime: telemetry for the pub/sub event handler[/+] on Oct 30, 2026
  3. sundeep8967 commented on Oct 31, 2026

    @sundeep8967

    Hi @ArnabChatterjee20k @eldadfux,

    I noticed that the realtime pub/sub telemetry instruments requested here have also landed on main in app/realtime.php (lines 471-474 and 615-618):

    • realtime.server.events.received (counter)
    • realtime.server.events.dropped (counter with reason attribute)
    • realtime.server.events.failed (counter with stage attribute)
    • realtime.server.event.stage (observable gauge of seconds in current step)

    Passed directly to EventHandler on worker startup. This issue can likely be closed as resolved on main as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api / realtimeproduct / databasesproduct / vcs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions