I have several bundles (A, B, and C) deployed to an OSGi container, each containing a CamelContext
and some routes. I have another bundle (M) with a CamelCont
One of the possibility is define a custom Tracer in Bundle 'M' and export it as osgi service.
In bundle A,B,C define osgi-reference to exported Tracer bean
Use camel JMX to enable trace.
This will result changes in bundle A,B,C but it will be minimal and it will also give ability to integrate and configure tracing (intercepting)
I have not tried this myself, but hth