I have a camel blueprint application with many routes, all called from a process manager.
The process manager sends a process instance id.
I want to use the incoming process instance id in opentracing spans and in MDC logging.
The obvious idea is an interceptor at the beginning of all routes which puts the id into a tracer baggage. But for that I must change all routes manually.
The camel-opentracing component instruments the routes behind the scenes, so that tracing becomes a cross-cutting concern. Is there a way to customize the tracing so that it adds data to all traces?
The application runs in an OSGi container, no Spring Boot.