-
-
Notifications
You must be signed in to change notification settings - Fork 224
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(commands): add send-metric command #2045
Conversation
Add CLI command that can emit metrics. Fixes GH-2001
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.
Initial quick-pass review (did not look at tests yet). Once this feedback is addressed, I'll do another more detailed review
src/utils/metrics/tags.rs
Outdated
use regex::Regex; | ||
use std::collections::HashMap; | ||
|
||
pub(super) struct NormalizedTags { |
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.
I think I would just call this struct something like MetricsTags
, then have a function defined on the struct which normalizes all the tags
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.
Please look at it again after offline discussion
Add CLI command that can emit metrics.
Fixes GH-2001