You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Fix OTel cardinality overflow metric for more error strings ([PR #8740](https://github.com/apollographql/router/pull/8740))
2
+
3
+
Emit the apollo.router.telemetry.metrics.cardinality_overflow metric for more instances where an OTel cardinality error has occurred. The message check has been changed to support a different form of the error that has been reported by a customer.
4
+
5
+
By [@bonnici](https://github.com/bonnici) in https://github.com/apollographql/router/pull/8740
// Keep track of the number of cardinality overflow errors otel emits. This can be removed after upgrading to 0.28.0 when the cardinality limit is removed.
62
62
// The version upgrade will also cause this log to be removed from our visibility even if we were set up custom a cardinality limit.
== "Metrics error: Warning: Maximum data points for metric stream exceeded. Entry added to overflow. Subsequent overflows to same metric until next collect will not be logged."
64
+
if err
65
+
.to_string()
66
+
.contains("Maximum data points for metric stream exceeded. Entry added to overflow.")
let msg = "Warning: Maximum data points for metric stream exceeded. Entry added to overflow. Subsequent overflows to same metric until next collect will not be logged.";
@@ -344,6 +345,25 @@ mod tests {
344
345
.await;
345
346
}
346
347
348
+
#[tokio::test]
349
+
asyncfntest_cardinality_overflow_2(){
350
+
async{
351
+
let error_map = DashMap::new();
352
+
let msg =
353
+
"Warning: Maximum data points for metric stream exceeded. Entry added to overflow.";
0 commit comments