Conditionally on Micrometer Tracing classpath availability, it would make sense to configure MicrometerTracing
for the Lettuce driver instead of MicrometerCommandLatencyRecorder
.
MicrometerTracing
uses the broader Observability API and can deliver spans and metrics whereas MicrometerCommandLatencyRecorder
records only timers.
Comment From: wilkinsona
@mp911de would we lose anything if we always configured MicrometerTracing
when ObservationRegistry
is on the classpath and never bothered with MicrometerCommandLatencyRecorder
?