I am just diving into the deep sea of APM, and the possibilites that comes with the Elastic APM agent, which my team has been using for a while, but just what comes out of the box.
In my current setup, I am adding custom baggage that is being propagated between my applications, thanks to the apm agent. I can then move this baggaged data to the slf4j MDC.
I have, however, one problem in one of the applications. This application is multithreaded. The agent inserts the trace.id and transaction.id just fine into the new threads MDC, but my custom data, I have to move by myself.
Are there any plans on opening up the integration between the agent and the MDC so I can have my custom data inserted to the MDC just as the agent inserts the other, known, data?
Right now it is rather "boilerplaty" to get the values from MDC before a task is submitted to my executorservice, and then open up a new MDCCloseable-scope moving the values over.