Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain committed Sep 21, 2024
1 parent 9cbe9d8 commit 5363124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/common/router/router_ratelimit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down

0 comments on commit 5363124

Please sign in to comment.