smongiar opened a new pull request, #24077:
URL: https://github.com/apache/camel/pull/24077

   ## Summary
   
   The original CAMEL-21622 fix added `camel.route.id` as a span attribute in 
`camel-tracing` (used by `camel-opentelemetry`), but the same fix was never 
applied to `camel-telemetry` (used by `camel-opentelemetry2`). As a result, 
spans produced by the otel2 component are missing this attribute.
   
   This PR ports the same logic:
   - Add `ROUTE_ID` constant to `TagConstants`
   - In `AbstractSpanDecorator.beforeTracingEvent()`, read 
`Exchange.getFromRouteId()` and set it as a span tag
   - Add unit test coverage mirroring the existing test in `camel-tracing`
   
   ## Test plan
   
   - [x] Unit test added in `AbstractSpanDecoratorTest` verifying 
`camel.route.id` is set
   - [x] Verified unit tests pass locally (`mvn verify` in `camel-telemetry` 
module)
   - [x] Integration test (`OpenTelemetry2ChainITCase#checkRouteIdInSpan`) 
validated on OCP — correctly detects the missing attribute on unpatched builds


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to