From a90c145d98c42c3d2778d2938587ae00c61f21c0 Mon Sep 17 00:00:00 2001 From: Alejandro Pedraza Date: Fri, 8 Nov 2024 15:17:25 -0500 Subject: [PATCH] ratelimit_error label even when there's no metadata --- linkerd/app/core/src/metrics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkerd/app/core/src/metrics.rs b/linkerd/app/core/src/metrics.rs index 8f7d4bf789..84c03baeea 100644 --- a/linkerd/app/core/src/metrics.rs +++ b/linkerd/app/core/src/metrics.rs @@ -404,7 +404,7 @@ impl FmtLabels for HTTPLocalRateLimitLabels { self.error, ) } else { - Ok(()) + write!(f, ",ratelimit_error=\"{}\"", self.error) } } }