-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add MetricsCollector and instrumentation #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2fb8f75
feat: add MetricsCollector interface
maxence2997 df0d8c4
feat: instrument server lifecycle metrics
maxence2997 68a578a
test: add MetricsCollector unit tests
maxence2997 511e2c4
doc: add metrics section to internals
maxence2997 76d5aed
doc: add WithMetrics to README and CHANGELOG
maxence2997 57e22b0
fix: address PR review feedback
maxence2997 d93cc5d
merge: integrate main (PR#10 eng review) into feat/metrics-collector
maxence2997 1cb15c6
fix: address eng review — DisconnectReason, shutdown metrics, test gaps
maxence2997 dd1225a
fix: move metrics calls outside h.mu to prevent deadlock
maxence2997 89a8d59
fix: address Copilot review round 4
maxence2997 0eb5079
fix: use wspulse package name in internals.md code example
maxence2997 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # TODOS | ||
|
|
||
| ## Failed resume detection: ResumeAttempt(..., false) | ||
|
|
||
| When a client reconnects with a connectionID that has already expired (grace | ||
| window elapsed), identify this as a "failed resume" and emit | ||
| `ResumeAttempt(roomID, connectionID, false)` before creating the new session. | ||
|
|
||
| The `success bool` parameter exists but is currently always `true`. Detecting | ||
| failed resumes is non-trivial: after grace expiry the session is destroyed and | ||
| the connectionID is freed. Distinguishing "new client reusing an ID" from | ||
| "client that missed the resume window" may require protocol-level signaling | ||
| (e.g. a client-sent `resume` intent header on the upgrade request). | ||
|
|
||
| **Depends on:** MetricsCollector interface (this branch), possibly protocol | ||
| changes in the `.github` repo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.