Skip to content

feat: add stable event handler event metrics#2986

Draft
adityathebe wants to merge 1 commit intomainfrom
feat/event-handler-event-metrics
Draft

feat: add stable event handler event metrics#2986
adityathebe wants to merge 1 commit intomainfrom
feat/event-handler-event-metrics

Conversation

@adityathebe
Copy link
Copy Markdown
Member

@adityathebe adityathebe commented Apr 17, 2026

  • add event handler metrics for event-level status and duration\n- instrument sync and async consumers to record success/failed counts\n- add named event handler registration APIs and use stable handler names in notification/playbook registrations
# HELP event_handler_events_total Total number of events processed by event handlers.
# TYPE event_handler_events_total counter
event_handler_events_total{event="config.changed",handler="notification.addNotificationEvent",status="success"} 287
event_handler_events_total{event="config.changed",handler="playbook.Handle",status="success"} 287
event_handler_events_total{event="config.healthy",handler="notification.addNotificationEvent",status="success"} 1
event_handler_events_total{event="config.healthy",handler="playbook.Handle",status="success"} 1
event_handler_events_total{event="config.unknown",handler="notification.addNotificationEvent",status="success"} 1
event_handler_events_total{event="config.unknown",handler="playbook.Handle",status="success"} 1
event_handler_events_total{event="config.updated",handler="notification.addNotificationEvent",status="success"} 55
event_handler_events_total{event="config.updated",handler="playbook.Handle",status="success"} 55

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 17, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 963e169e-fe0c-40f6-85a0-4eed5eaba08a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/event-handler-event-metrics
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch feat/event-handler-event-metrics

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant