The HeaderExtractor interface is very generic, as you can see from that example it's really just any lambda that returns a string. So you can use that for anything, you just need to specify extracting the header from kafka
Ideally we should not be writing our own decode() function to convert byte array into a hex string according to your specification. Is there any other way to do this? directly passing the byte array to your API?
The argument passed to the functional interface doesn't match with the header key
Argument passed is "elastic-apm-traceparent" but the header is populated with "elasticapmtraceparent".
The TraceContext is internal to the agent, not part of the public API. For now you need to write your own decoder using that as a template. That should also resolve the header name since you'll be passing that
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.