Skip to content

Track outgoing queue disconnects#5331

Merged
cloutiertyler merged 2 commits into
masterfrom
bot/client-buffer-kick-metric
Jun 20, 2026
Merged

Track outgoing queue disconnects#5331
cloutiertyler merged 2 commits into
masterfrom
bot/client-buffer-kick-metric

Conversation

@clockwork-labs-bot

Copy link
Copy Markdown
Contributor

Description of Changes

Adds a Prometheus counter for client disconnects caused by the outgoing WebSocket message queue reaching capacity.

The new metric is spacetime_client_outgoing_queue_disconnects_total{db=...}. It increments only on the TrySendError::Full path that kicks a client after its bounded outgoing queue fills.

API and ABI breaking changes

None.

Expected complexity level and risk

  1. This is a narrow observability change: one metric definition and one increment at the existing kick site.

Testing

  • cargo fmt --all
  • LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8 cargo check -p spacetimedb-core
  • git diff --check

@cloutiertyler cloutiertyler enabled auto-merge June 15, 2026 19:37
@cloutiertyler cloutiertyler added this pull request to the merge queue Jun 20, 2026
Merged via the queue into master with commit 353557c Jun 20, 2026
58 of 59 checks passed
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.

3 participants