-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
Current Behavior
The OTEL instrumentation has support for DB query tracing:
go-redis/extra/redisotel/tracing.go
Line 115 in 23a87a2
if th.conf.dbStmtEnabled { |
This works well until a large object (a large image, in our case) is inserted into Redis. Then it can clog up the metric exporter.
Possible Solution
Add an option to cut the DB statement to a reasonable size. Something like WithDBStatementMaxSize(n int)
that would preserve the initial n/2
and the final n/2
characters from the query.
nikolaydubinanikolaydubina
Metadata
Metadata
Assignees
Labels
No labels