-
Notifications
You must be signed in to change notification settings - Fork 27
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 support for distribution metric type #125
Conversation
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.
Thanks for the PR, amazing work! One small change requested
cadence/src/client.rs
Outdated
/// `MetricBuilder` that can be used to add tags to the metric. | ||
fn distribution_with_tags<'a>(&'a self, key: &'a str, value: u64) -> MetricBuilder<'_, '_, Distribution>; | ||
|
||
/// Record a single distribution value with the given key. |
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.
If you don't have a specific usecase for treating these as times, would you mind removing the duration
methods? They were added to Histograms (in Cadence) after the fact by request. I'd rather not add extra methods unless people specifically need them.
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.
Will do!
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.
LGTM
@56quarters, if it's not too much trouble, would you be able to cut a release containing the distribution stuff? :) |
Sure, I'll try to do that in the next few days.
…On Thu, Mar 18, 2021, 13:48 Duarte Nunes ***@***.***> wrote:
@56quarters <https://github.com/56quarters>, if it's not too much
trouble, would you be able to cut a release containing the distribution
stuff? :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#125 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAITHTLGMW2TRIXCSDSCLFTTEI4ILANCNFSM4ZI3IM5A>
.
|
This PR adds support for the Datadog-specific distribution metric type, documented here.