-
Notifications
You must be signed in to change notification settings - Fork 191
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
Fix #5824 to add camel trace config properties #6130
Conversation
...ions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelContextRecorder.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With regards to testing. We should be able to craft some minimal test(s) that retrieve the BacklogTracer
and verify the configuration state is as expected.
extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelConfig.java
Outdated
Show resolved
Hide resolved
extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelConfig.java
Outdated
Show resolved
Hide resolved
BacklogTracer tracer = null; | ||
if (registry != null) { | ||
// lookup in registry | ||
Map<String, BacklogTracer> map = registry.findByTypeWithName(BacklogTracer.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happen if we don't look in the registry ? Shouldn't the tracer be accessible from getContextPlugin
always ? Maybe, this is related to stand by mode ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I borrow some codes from DefualtChannel::getOrCreateBacklogTracer(), @davsclaus any idea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The history lead up to camel 3 refactoring, might be there since even longer. As we are in line with camel-core, it should be fine to validate the pr.
Still it would be interesting to get the explanation if anyone remember :)
Fixes #5824