Skip to content
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

Add Default trait to Statistics #410

Merged
merged 1 commit into from
Nov 27, 2021
Merged

Conversation

benesch
Copy link
Collaborator

@benesch benesch commented Nov 26, 2021

rdkafka publishes stats every configurable ms. Some of these properties
are ever increasing and requires us to calculate the difference between
the current value and the previous value (for example the 'tx' and
'txmsgs' fields). Setting a Default trait allow us to use the default
values for fields of the struct which are required on startup.

rdkafka publishes stats every configurable ms. Some of these properties
are ever increasing and requires us to calculate the difference between
the current value and the previous value (for example the 'tx' and
'txmsgs' fields). Setting a Default trait allow us to use the default
values for fields of the struct which are required on startup.
@benesch benesch merged commit 6454372 into fede1024:master Nov 27, 2021
@benesch benesch deleted the statistics-default branch November 27, 2021 00:20
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.

2 participants