-
Notifications
You must be signed in to change notification settings - Fork 94
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(metric-stats): Report cardinality to metric stats #3360
Conversation
d35eaa8
to
61221e9
Compare
61221e9
to
94cb3df
Compare
relay-server/src/metric_stats.rs
Outdated
@@ -66,6 +77,35 @@ impl MetricStats { | |||
.send(MergeBuckets::new(scoping.project_key, vec![volume])); | |||
} | |||
|
|||
/// Tracks the cardinality of a metric. | |||
pub fn cardinality( |
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.
Wdyt about track_cardinality
? I find it more predictable from the API's user pov, even if it's similar to the track
above.
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.
+1, I left a similar comment here: https://github.com/getsentry/relay/pull/3342/files#r1542984095
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.
@jjbayer sorry, I remember renaming it not sure what happened to it :(
relay-server/src/metric_stats.rs
Outdated
@@ -66,6 +77,35 @@ impl MetricStats { | |||
.send(MergeBuckets::new(scoping.project_key, vec![volume])); | |||
} | |||
|
|||
/// Tracks the cardinality of a metric. | |||
pub fn cardinality( |
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.
+1, I left a similar comment here: https://github.com/getsentry/relay/pull/3342/files#r1542984095
c75d8ca
to
239e000
Compare
* master: feat(metric-stats): Report cardinality to metric stats (#3360) release: 0.8.56 fix(perfscore): Adds span op tag to perf score totals (#3326) ref(profiles): Return retention_days as part of the Kafka message (#3362) ref(filter): Add GTmetrix to the list of web crawlers (#3363) fix: Fix kafka topic default (#3350) ref(normalization): Remove duplicated normalization (#3355) feat(feedback): Emit outcomes for user feedback events (#3026) feat(cardinality): Implement cardinality reporting (#3342)
Emits collected cardinality reports as metric stats.
Changed cardinality limit to a
u32
, this is still way too big for us ever to reach it, but it makes the conversion to f64 easier.