Skip to content

Conversation

timdrijvers
Copy link

Replace the stats dictionary by a class and interface, that is extensible to allow users to replace the stats collection by their own custom stats collector.

Resolves #720

Replace the stats dictionary by a class and interface, that is
extensible to allow users to replace the stats collection by their
own custom stats collector.

Resolves nats-io#720

Signed-off-by: Tim Drijvers <[email protected]>
@timdrijvers timdrijvers force-pushed the client-stats-extensible branch from 73765ad to 9fa1324 Compare August 13, 2025 13:18
@bruth bruth requested a review from caspervonb September 15, 2025 14:56
@caspervonb
Copy link
Collaborator

caspervonb commented Sep 16, 2025

Cautious about adding overhead to the I/o loop so not sure about this, as one could always just poll for deltas in an async coroutine? have you considered just calculating the diff every interval?

As far as I know, all of the clients just provide these as "dumb" (often atomic) counters.

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.

Extensible client statistics
3 participants