Skip to content

chore: upgrade opentelemetry example to camel-opentelemetry2#178

Merged
Croway merged 1 commit intoapache:mainfrom
Croway:chore/opentelemetry2-upgrade
Apr 10, 2026
Merged

chore: upgrade opentelemetry example to camel-opentelemetry2#178
Croway merged 1 commit intoapache:mainfrom
Croway:chore/opentelemetry2-upgrade

Conversation

@Croway
Copy link
Copy Markdown
Contributor

@Croway Croway commented Apr 10, 2026

Summary

  • Migrate the opentelemetry example from the deprecated camel-opentelemetry to camel-opentelemetry2
  • Replace camel-opentelemetry-starter with camel-opentelemetry2-starter and @CamelOpenTelemetry with @CamelOpenTelemetry2 across all 4 sub-modules
  • Fix Kafka broker URLs for host-to-Docker connectivity (dual-listener config)
  • Remove stale/unused properties (opentracing, jaeger, old camel.version, etc.)

Note

The async (Kafka) trace context propagation is currently broken in camel-opentelemetry2 due to a missing byte[] header handling in camel-telemetry's AbstractMessagingSpanDecorator. A fix has been proposed in Apache Camel.

Test plan

  • Sync HTTP flow (/camel/bookTrip): 14 spans, all 4 services, full cross-service trace propagation
  • Async Kafka flow (/camel/asyncBookTrip): works with the Camel fix applied

Migrate the opentelemetry example from the deprecated
camel-opentelemetry to camel-opentelemetry2.

Changes:
- Replace camel-opentelemetry-starter with camel-opentelemetry2-starter
- Replace @CamelOpenTelemetry with @CamelOpenTelemetry2
- Fix Kafka broker URLs for host-to-Docker connectivity
- Remove stale/unused properties (opentracing, jaeger, etc.)

Note: the async (Kafka) trace context propagation is currently broken
in camel-opentelemetry2 due to a missing byte[] header handling in
camel-telemetry's AbstractMessagingSpanDecorator. A fix has been
proposed in Apache Camel.
@Croway Croway requested a review from cunningt April 10, 2026 12:44
@Croway
Copy link
Copy Markdown
Contributor Author

Croway commented Apr 10, 2026

@mcarlett

@mcarlett
Copy link
Copy Markdown
Contributor

thanks @Croway

@Croway Croway merged commit 69cd0ee into apache:main Apr 10, 2026
1 check 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.

2 participants