mirror of https://github.com/go-redis/redis.git
feat: add max cmd bytes for otel hook
Signed-off-by: rfyiamcool <rfyiamcool@163.com>
This commit is contained in:
parent
47aafdf175
commit
1c544e0ec8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue