From 07a00c9c296c977bd4007b9770526c8556c102ec Mon Sep 17 00:00:00 2001 From: X-Guardian Date: Fri, 8 Nov 2024 23:21:50 +0000 Subject: [PATCH] Add DefaultSanitizerOpts --- server/metrics/scope.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/metrics/scope.go b/server/metrics/scope.go index a0f35b3ef3..e1701931fc 100644 --- a/server/metrics/scope.go +++ b/server/metrics/scope.go @@ -27,7 +27,8 @@ func NewScope(cfg valid.Metrics, logger logging.SimpleLogging, statsNamespace st } scopeOpts := tally.ScopeOptions{ - Prefix: statsNamespace, + Prefix: statsNamespace, + SanitizeOptions: &tallyprom.DefaultSanitizerOpts, } if r, ok := reporter.(tally.StatsReporter); ok {