Repository navigation
Conversation
Pull request dashboard statusWaiting on reviewers · refreshed 2026-11-28 18:16 UTC Review the latest changes. Status above doesn't look right?
|
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the getter-ownership cleanup.
No open issues 🎉
What changed in this PR
Completes the getter-ownership cleanup deferred from #21563 across five instrumentations, preserving propagation and emitted telemetry.
Changes:
- Replaces singleton getters with instances constructed during instrumenter setup.
- Reuses component-owned getters in batch extractors and the Spring Integration interceptor.
- Shares WebFlux route lookup through a static helper and adds route edge-case coverage.
| File | Description |
|---|---|
| WebfluxServerHttpAttributesGetterTest.java | Tests missing, wildcard, and context-path routes. |
| WebfluxServerHttpAttributesGetter.java | Replaces the singleton and extracts shared route lookup. |
| TelemetryProducingWebFilter.java | Uses the shared route helper. |
| SpringWebfluxServerTelemetryBuilder.java | Constructs the HTTP attributes getter during setup. |
| TracingChannelInterceptor.java | Reuses an interceptor-owned message getter. |
| SpringIntegrationTelemetryBuilder.java | Constructs the consumer getter during setup. |
| MessageHeadersGetter.java | Converts the singleton enum to an instantiable class. |
| PulsarSingletons.java | Creates receive and process getters during setup. |
| PulsarBatchRequestSpanLinksExtractor.java | Reuses an extractor-owned getter for batch records. |
| MessageTextMapGetter.java | Converts the singleton enum to an instantiable class. |
| CamelSingletons.java | Houses and constructs the Camel request getter. |
| CamelPropagationUtil.java | Removes the relocated getter and its accessor. |
| SqsMessageTextMapGetter.java | Replaces singleton access with package-private construction. |
| SqsEventSpanLinksExtractor.java | Reuses an extractor-owned SQS getter. |
| AwsLambdaSqsInstrumenterFactory.java | Constructs the selected-message processing getter during setup. |
Review effort: Balanced
trask
marked this pull request as ready for review
November 28, 2026 03:33
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
trask
force-pushed
the
copilot/otelbotinstruction-audit-46095846922
branch
from
November 28, 2026 18:14
e30ec51 to
116a27b
Compare
This branch has not been deployed
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.
Simplify telemetry getter ownership in the changes deferred from PR #21563, without changing propagation or emitted telemetry.