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(quotas): Add statsd data category #2526

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mitsuhiko
Copy link
Member

This adds the used statsd category.

@mitsuhiko mitsuhiko requested a review from a team September 22, 2023 08:08
///
/// This data dategory is not defined to "count", today it only exists to turn off ingestion
/// for clients without metrics functionality.
Statsd = 14,
//
// IMPORTANT: After adding a new entry to DataCategory, go to the `relay-cabi` subfolder and run
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update cabi?

@@ -108,6 +113,7 @@ impl DataCategory {
Self::Monitor => "monitor",
Self::Span => "span",
Self::MonitorSeat => "monitor_seat",
Self::Statsd => "statsd",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add the reverse mapping to from_name().

This is easy to miss, we should probably have a macro for it or use serde as the TODO says.

@jan-auer jan-auer self-assigned this Oct 2, 2023
@jan-auer jan-auer marked this pull request as draft October 4, 2023 08:23
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.

None yet

4 participants