From 1c544e0ec80a61ab9ee8058673f17af503e94ad9 Mon Sep 17 00:00:00 2001 From: rfyiamcool Date: Thu, 29 Feb 2024 16:29:33 +0800 Subject: [PATCH] feat: add max cmd bytes for otel hook Signed-off-by: rfyiamcool --- extra/redisotel/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/extra/redisotel/config.go b/extra/redisotel/config.go index 3ef14b39..c85f9d4c 100644 --- a/extra/redisotel/config.go +++ b/extra/redisotel/config.go @@ -116,6 +116,7 @@ func WithDBStatement(on bool) TracingOption { } // WithMaxCommandBytes limit the bytes of raw redis commands. +// Default is 0, don't limit. func WithMaxCommandBytes(size int) TracingOption { return tracingOption(func(conf *config) { conf.maxCommandBytes = size