Skip to content

Conversation

SylvainJuge
Copy link
Contributor

@SylvainJuge SylvainJuge commented Sep 22, 2025

When using lettuce, the current instrumentation produces lots redis.encode.start and redis.encode.end span events which can be noisy.

  • adds a new otel.instrumentation.lettuce.experimental.command-encoding-events.enabled configuration option, defaults to false thus a minor breaking change.
  • filters the span events as they are produced in TracedCommand lettuce class

This solves the same issue that was reported in ApplicationInsights-Java#1586 and elastic-otel-java#796, for now the workaround is to post-process and filter the span events at the collector level.

…nstrumentation into redis-lettuce-noisy-span-events
@SylvainJuge SylvainJuge marked this pull request as ready for review September 23, 2025 11:38
@SylvainJuge SylvainJuge requested a review from a team as a code owner September 23, 2025 11:38
@laurit laurit added this to the v2.21.0 milestone Sep 26, 2025
@trask trask merged commit d78c242 into open-telemetry:main Sep 26, 2025
89 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants