From 0965f73ab3a186c8bf07253c73dd4ad43c03b99d Mon Sep 17 00:00:00 2001 From: keisku Date: Tue, 17 Dec 2024 13:30:48 +0000 Subject: [PATCH] add debug log Signed-off-by: keisku --- pkg/obfuscate/cache.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/obfuscate/cache.go b/pkg/obfuscate/cache.go index 70a4d44f60eb8..812975219a509 100644 --- a/pkg/obfuscate/cache.go +++ b/pkg/obfuscate/cache.go @@ -9,6 +9,7 @@ import ( "fmt" "time" + "github.com/DataDog/datadog-agent/pkg/trace/log" "github.com/outcaste-io/ristretto" ) @@ -62,6 +63,7 @@ func newMeasuredCache(opts cacheOptions) *measuredCache { // a nil *ristretto.Cache is a no-op cache return &measuredCache{} } + log.Debugf("starting obfuscator query cache with max size %d", opts.MaxSize) cfg := &ristretto.Config{ MaxCost: opts.MaxSize, NumCounters: opts.MaxSize * 10, // Multiplied by 10 as per ristretto recommendation