Skip to content

Add metrics for websocket client termination/rejection#5495

Open
jsdt wants to merge 1 commit into
masterfrom
jsdt/client-abort-metrics
Open

Add metrics for websocket client termination/rejection#5495
jsdt wants to merge 1 commit into
masterfrom
jsdt/client-abort-metrics

Conversation

@jsdt

@jsdt jsdt commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

This adds two metrics: ws_client_disconnections, and ws_client_rejections to track the different causes for clients that are disconnected. If clients are disconnected before we consider them connected, they count toward ws_client_rejections instead of ws_client_disconnections. These metrics are labeled by cause and db, and the causes are discussed in crates/core/src/worker_metrics/mod.rs.

Expected complexity level and risk

  1. This should only affect metrics.

Testing

There are some basic unit tests.

@jsdt jsdt requested a review from gefjon July 8, 2026 14:52
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.

2 participants