Enable simple tracer standby in dev profile#23415
Merged
Merged
Conversation
The backlog tracer already had standby auto-enabled in dev mode, but the simple log tracer (controlled by --trace) did not. This meant users had to restart with --trace to get log-based tracing, even during development. Now both tracers are in standby mode in the dev profile, so tracing can be toggled on at runtime via Tracer.setEnabled(true) or JMX without restarting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
davsclaus
approved these changes
May 21, 2026
Contributor
|
btw there is always in dev mode included the last traced message its in the history dev console. So you can ask the AI what happened with the message inside camel the tracing captures and remember in a backlog so you can view older traces. |
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Contributor
|
🧪 CI tested the following changed modules:
Build reactor — dependencies compiled but only changed modules were tested (2 modules)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tracingStandby) in dev profile, matching how backlog tracer standby is already auto-enabledcamel runor Camel Main)Background
The
--traceflag forcamel runmust be specified at launch time becauseTracingAdviceinterceptors are woven into route processor chains only during route initialization. Without standby mode, there is no way to toggle tracing on at runtime.The backlog tracer already had standby auto-enabled in dev profile (
ProfileConfigurer.java), but the simple log tracer (what--tracecontrols) was missed.Test plan
MainDevProfileTracingStandbyTest.testDevProfileEnablesTracingStandby— verifies dev profile setstracingStandby=trueMainDevProfileTracingStandbyTest.testDevProfileTracingCanBeEnabledAtRuntime— verifies tracer can be toggled on at runtimeMainDevProfileTracingStandbyTest.testProdProfileDoesNotEnableTracingStandby— verifies prod profile does not set standbyTracingStandbyTestandTracingStandbyNoRouteTeststill pass