Add player join/disconnect counters #3

Merged
tral merged 1 commit from metric/connection-events into main 2026-04-25 01:37:28 -07:00
Owner

Exports minecraft_player_joins_total and minecraft_player_disconnects_total,
incremented from Fabric API's ServerPlayConnectionEvents JOIN/DISCONNECT
hooks. Unlike the existing handshakes counter, these only fire after a
client reaches the play state, so they reflect real session churn rather
than every server-list ping. No labels: the disconnect event doesn't
expose a reason.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

Exports minecraft_player_joins_total and minecraft_player_disconnects_total, incremented from Fabric API's ServerPlayConnectionEvents JOIN/DISCONNECT hooks. Unlike the existing handshakes counter, these only fire after a client reaches the play state, so they reflect real session churn rather than every server-list ping. No labels: the disconnect event doesn't expose a reason. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add player join/disconnect counters
Some checks failed
Build / build (pull_request) Has been cancelled
e98e74524c
Exports minecraft_player_joins_total and minecraft_player_disconnects_total,
incremented from Fabric API's ServerPlayConnectionEvents JOIN/DISCONNECT
hooks. Unlike the existing handshakes counter, these only fire after a
client reaches the play state, so they reflect real session churn rather
than every server-list ping. No labels: the disconnect event doesn't
expose a reason.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
tral merged commit 8146fc7787 into main 2026-04-25 01:37:28 -07:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tral/fabric-exporter!3
No description provided.