I am testing the JMS Plugin of Java Apm Client.
The jms agent plugin creates a trace header with elastic_apm_traceparent instead of elastic-apm-traceparent.
public interface JmsInstrumentationHelper<D, M, L> {
/**
* In some cases, dashes are not allowed in JMS Message property names
*/
public static final String JMS_TRACE_PARENT_HEADER = TraceContext.TRACE_PARENT_HEADER.replace('-', '_');
@Nullable
Span startJmsSendSpan(D destination, M message);
@Nullable
L wrapLambda(@Nullable L listener);
}
So the reason is clear. But that's confusing in the programming.