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

feat(commands): add send-metric command #2045

Closed
wants to merge 8 commits into from
Closed

feat(commands): add send-metric command #2045

wants to merge 8 commits into from

Conversation

elramen
Copy link
Contributor

@elramen elramen commented Apr 29, 2024

Add CLI command that can emit metrics.

Fixes GH-2001

Add CLI command that can emit metrics.

Fixes GH-2001
@elramen elramen requested a review from szokeasaurusrex April 29, 2024 17:48
Copy link
Member

@szokeasaurusrex szokeasaurusrex left a 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/commands/send_metric/mod.rs Show resolved Hide resolved
src/commands/send_metric/mod.rs Outdated Show resolved Hide resolved
src/utils/metrics/payload.rs Outdated Show resolved Hide resolved
src/utils/metrics/payload.rs Outdated Show resolved Hide resolved
src/utils/metrics/payload.rs Outdated Show resolved Hide resolved
src/utils/metrics/metric_data.rs Outdated Show resolved Hide resolved
src/utils/metrics/metric_data.rs Outdated Show resolved Hide resolved
src/utils/metrics/metric_data.rs Outdated Show resolved Hide resolved
use regex::Regex;
use std::collections::HashMap;

pub(super) struct NormalizedTags {
Copy link
Member

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

Copy link
Contributor Author

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

src/utils/value_parsers.rs Outdated Show resolved Hide resolved
@elramen elramen closed this May 14, 2024
@elramen elramen reopened this May 14, 2024
@elramen elramen marked this pull request as draft May 14, 2024 14:13
@elramen elramen marked this pull request as draft May 14, 2024 14:13
@elramen elramen closed this May 14, 2024
@elramen elramen deleted the send-metric branch May 28, 2024 11:41
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