From 53631246fd8b5391db07084edd076629e8b91b03 Mon Sep 17 00:00:00 2001 From: zirain Date: Sat, 21 Sep 2024 23:16:20 +0800 Subject: [PATCH] nit Signed-off-by: zirain --- source/common/router/router_ratelimit.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/router/router_ratelimit.cc b/source/common/router/router_ratelimit.cc index 121b5d528b89..b1b4dc16c0a2 100644 --- a/source/common/router/router_ratelimit.cc +++ b/source/common/router/router_ratelimit.cc @@ -181,7 +181,7 @@ bool MaskedRemoteAddressAction::populateDescriptor(RateLimit::DescriptorEntry& d // For Ipv4, masked_address is returned in a format similar to '192.168.1.0/32', '.' It's a key // word in statsd, This makes it difficult to export measurements in Promethean format in the // RateLimit server. - absl::StrReplaceAll({}, &masked_address); + masked_address = absl::StrReplaceAll(masked_address, {{".", "_"}}); } descriptor_entry = {"masked_remote_address", masked_address};