feat: add max cmd bytes for otel hook

Signed-off-by: rfyiamcool <rfyiamcool@163.com>
This commit is contained in:
rfyiamcool 2024-02-29 16:29:33 +08:00
parent 47aafdf175
commit 1c544e0ec8
No known key found for this signature in database
GPG Key ID: EBA61C4D83B4DC5C
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ func WithDBStatement(on bool) TracingOption {
} }
// WithMaxCommandBytes limit the bytes of raw redis commands. // WithMaxCommandBytes limit the bytes of raw redis commands.
// Default is 0, don't limit.
func WithMaxCommandBytes(size int) TracingOption { func WithMaxCommandBytes(size int) TracingOption {
return tracingOption(func(conf *config) { return tracingOption(func(conf *config) {
conf.maxCommandBytes = size conf.maxCommandBytes = size