Croway opened a new pull request, #208: URL: https://github.com/apache/camel-spring-boot-examples/pull/208
## Summary - The `opentelemetry` example's 4 booking modules (CarBooking, FlightBooking, HotelBooking, TripBooking) pinned `opentelemetry-javaagent` to `1.25.1` (mid-2023), duplicated across each module's pom. That version silently fails to attach on JDK 25 (`InaccessibleObjectException`), so no spans reach Jaeger with no obvious startup error - it only worked when re-run on JDK 17. - Bumped the agent to `2.19.0`, matching the version already proven working in this repo's `observability-services` and `rest-cxf-opentelemetry` examples, and centralized the property in the `opentelemetry` parent pom instead of duplicating it 4 times. - The newer agent also changed its default OTLP export protocol from gRPC (port 4317) to HTTP/protobuf (port 4318). The docker-compose stack's `otel-collector` service already listens on 4318 but didn't publish it to the host, so exposed that port too. ## Test plan - [x] `mvn install` builds all 4 modules on JDK 25, agent 2.19.0 downloaded/copied - [x] Booted the full example on JDK 25 against the real docker-compose stack (Kafka, Jaeger, OTel Collector, Prometheus) - [x] Sync (`/camel/bookTrip`) and async/Kafka (`/camel/asyncBookTrip`) requests both return 200 - [x] Jaeger shows full distributed traces (27 spans sync, 45 spans async) spanning all 4 services - [x] Prometheus scrapes are up for all 4 services and Camel exchange metrics are populated 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Wgr7MBBqUbNGG6xrH6ybWq -- 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]
