Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
Signed-off-by: keisku <[email protected]>
  • Loading branch information
keisku committed Dec 17, 2024
1 parent 53c9a28 commit 0965f73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/obfuscate/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"fmt"
"time"

"github.com/DataDog/datadog-agent/pkg/trace/log"
"github.com/outcaste-io/ristretto"
)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0965f73

Please sign in to comment.