Use lettuce's native tracing functionality #6345
-
Hi! I would like to use the lettuce's native tracing functionality to see spans for each redis call and include relevant info in the trace (redis key, etc...). I saw that openTelemetry provides already an implementation of the lettuce Tracing interface here. However I don't know how to use it since I cannot use this I have to add some configuration I guess. Can someone help me figure out what I missed?. Btw this is the demo I'm using to test this tracing functionality. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @SimoneGiusso , |
Beta Was this translation helpful? Give feedback.
Hey @SimoneGiusso ,
The entrypoint of the Lettuce instrumentation library is the
LettuceTelemetry
class. Once you construct it, you can use thenewTracing()
method to obtain an instance of LettuceTracing
that you can use onClientResource
. See one of our tests for a brief example.