-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: future_metrics #19
Conversation
92f39cb
to
99baf63
Compare
let metadata = Metadata::new(METADATA_TARGET, Level::INFO, None); | ||
|
||
Self { | ||
duration: r.register_histogram( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this references the same counters for all Metrics
instances? With opentelemetry
we had to use static/shared Counter
instances, otherwise the exported data was incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same function is being called in their macro, so I'm relatively sure
@heilhead I removed reporting I think the |
state.poll_duration_max = state.poll_duration_max.max(poll_duration); | ||
state.polls_count += 1; | ||
|
||
if result.is_ready() && !state.is_finished { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you flip the state.is_finished
somewhere in this block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea, another copy-pasta relic. This code was in drop
previously 🤡
although this would only affect fused
futures probably
Description
Adds
future_metrics
crate providing metrics for futures based onmetrics
facade.How Has This Been Tested?
Due Diligence