Elastic Agent tracing

Hello,

I am using elastic apm agent in my spring boot application. It seems that internally agent generates field 'trace.id' with generated value for logging/tracing purposes.

The problem with that is that when i want to put my own value to 'trace.id' field it is always overriden. So MDC.put("trace.id", myTraceId) is not applied at the end and myTraceId is not logged.

Is there any way to force agent to not override myTraceId or maybe disable this somehow ?

Anyone have any idea?