Convert lettuce to use instrumenter#15838
Merged
trask merged 19 commits intoopen-telemetry:mainfrom Feb 22, 2026
Merged
Conversation
2d37785 to
429eeed
Compare
287e8bd to
4a353bb
Compare
laurit
reviewed
Jan 22, 2026
laurit
reviewed
Feb 11, 2026
laurit
reviewed
Feb 11, 2026
laurit
reviewed
Feb 11, 2026
laurit
reviewed
Feb 11, 2026
laurit
reviewed
Feb 11, 2026
laurit
reviewed
Feb 11, 2026
# Conflicts: # instrumentation/lettuce/lettuce-5.1/library/src/main/java/io/opentelemetry/instrumentation/lettuce/v5_1/LettuceTelemetry.java # instrumentation/lettuce/lettuce-5.1/library/src/main/java/io/opentelemetry/instrumentation/lettuce/v5_1/LettuceTelemetryBuilder.java # instrumentation/lettuce/lettuce-5.1/library/src/main/java/io/opentelemetry/instrumentation/lettuce/v5_1/OpenTelemetryTracing.java
Member
|
hey @steverao! I sent steverao#12 with a couple of suggestions |
* Consolidate LettuceServerAttributesGetter into LettuceDbAttributesGetter DbClientAttributesGetter extends ServerAttributesGetter, so DbClientAttributesExtractor already handles server attributes internally. Remove the separate LettuceServerAttributesGetter and ServerAttributesExtractor to match the canonical pattern used by other DB instrumentations (Jedis, etc.). * Prevent double-ending of span in finish() Null out context after instrumenter.end() to guard against both the onComplete callback and Lettuce's direct finish() call executing. Add comment explaining error lifecycle when start() was not called.
Contributor
Author
|
Please take a look again! @open-telemetry/java-instrumentation-approvers |
9e3939b to
8f57a85
Compare
6327c1e to
b2df23e
Compare
b255c0b to
a6f52d1
Compare
…use-instrumenter # Conflicts: # instrumentation/lettuce/lettuce-5.1/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_1/LettuceReactiveClientTest.java # instrumentation/lettuce/lettuce-5.1/testing/src/main/java/io/opentelemetry/instrumentation/lettuce/v5_1/AbstractLettuceAsyncClientTest.java # instrumentation/lettuce/lettuce-5.1/testing/src/main/java/io/opentelemetry/instrumentation/lettuce/v5_1/AbstractLettuceReactiveClientTest.java # instrumentation/lettuce/lettuce-5.1/testing/src/main/java/io/opentelemetry/instrumentation/lettuce/v5_1/AbstractLettuceSyncClientAuthTest.java # instrumentation/lettuce/lettuce-5.1/testing/src/main/java/io/opentelemetry/instrumentation/lettuce/v5_1/AbstractLettuceSyncClientTest.java
a6f52d1 to
d4c6092
Compare
trask
approved these changes
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolved #15703