Skip to content

Conversation

@jsdt
Copy link
Contributor

@jsdt jsdt commented May 15, 2025

Description of Changes

This adds two new metrics to track how often websocket clients connect and disconnect (spacetime_worker_ws_clients_spawned, and spacetime_worker_ws_clients_aborted).

Note that this isn't tracking at the tcp connection level, rather it only counts clients that have gone through any client lifecycle reducers.

Adding a metric for rejected clients (meaning the on_connect reducer failed) in the future could be useful.

API and ABI breaking changes

This is purely a metrics change.

@jsdt jsdt requested a review from gefjon May 15, 2025 18:37
Copy link
Contributor

@cloutiertyler cloutiertyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this because we'd like to get it into Ryan's new baseline test for the technical test. The risk is very low as it is only metrics.

@jsdt jsdt added this pull request to the merge queue May 15, 2025
Merged via the queue into master with commit 3fc61bc May 15, 2025
20 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.

4 participants