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

Fix #5824 to add camel trace config properties #6130

Merged
merged 2 commits into from
May 31, 2024

Conversation

zhfeng
Copy link
Contributor

@zhfeng zhfeng commented May 29, 2024

Fixes #5824

Copy link
Contributor

@jamesnetherton jamesnetherton left a 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.

BacklogTracer tracer = null;
if (registry != null) {
// lookup in registry
Map<String, BacklogTracer> map = registry.findByTypeWithName(BacklogTracer.class);
Copy link
Contributor

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 ?

Copy link
Contributor Author

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?

Copy link
Contributor

@aldettinger aldettinger May 30, 2024

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 :)

@zhfeng zhfeng merged commit bb721ff into apache:main May 31, 2024
23 of 24 checks 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.

Camel 4.5 - Trace config
4 participants