Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camel OpenTelemetry not compatible with Quarkus OpenTelemetry #6642

Open
jamesnetherton opened this issue Oct 15, 2024 · 0 comments
Open

Camel OpenTelemetry not compatible with Quarkus OpenTelemetry #6642

jamesnetherton opened this issue Oct 15, 2024 · 0 comments
Assignees
Labels
area/opentelemetry bug Something isn't working

Comments

@jamesnetherton
Copy link
Contributor

Bug description

Camel now uses some OTel APIs that were only recently added in 1.43.0. Since Quarkus is still aligned with 1.42.0, building an app with the opentelemetry fails at build time.

Caused by: java.lang.NoSuchMethodError: 'java.util.concurrent.ScheduledExecutorService io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)'
	at org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory.newScheduledThreadPool(OpenTelemetryInstrumentedThreadPoolFactory.java:66)
	at org.apache.camel.impl.engine.BaseExecutorServiceManager.newScheduledThreadPool(BaseExecutorServiceManager.java:263)
	at org.apache.camel.impl.engine.DefaultExecutorServiceManager.newScheduledThreadPool(DefaultExecutorServiceManager.java:49)
	at org.apache.camel.impl.engine.BaseExecutorServiceManager.newDefaultScheduledThreadPool(BaseExecutorServiceManager.java:181)
	at org.apache.camel.impl.engine.AbstractCamelContext.createErrorHandlerExecutorService(AbstractCamelContext.java:1948)
	at org.apache.camel.impl.engine.SimpleCamelContext.doBuild(SimpleCamelContext.java:141)
	at org.apache.camel.support.service.BaseService.build(BaseService.java:64)
	at org.apache.camel.quarkus.core.FastCamelContext.build(FastCamelContext.java:70)
	at org.apache.camel.quarkus.core.CamelContextRecorder.createContext(CamelContextRecorder.java:86)

The simplest fix until Quarkus upgrades to OTel 1.43.x is to disable discovery of the custom ThreadPoolFactory.

@jamesnetherton jamesnetherton added the bug Something isn't working label Oct 15, 2024
@jamesnetherton jamesnetherton changed the title [camel-main] Camel OpenTelemetry not compatible with Quarkus OpenTelemetry Camel OpenTelemetry not compatible with Quarkus OpenTelemetry Oct 24, 2024
@jamesnetherton jamesnetherton self-assigned this Oct 24, 2024
jamesnetherton added a commit that referenced this issue Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/opentelemetry bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant