# Public API using startTransactionWithRemoteParent for Kafka headers

**URL:** <https://discuss.elastic.co/t/public-api-using-starttransactionwithremoteparent-for-kafka-headers/336183>\
**Category:** APM\
**Tags:** java, server\
**Created:** [June 16, 2023, 1:57am UTC](https://discuss.elastic.co/t/public-api-using-starttransactionwithremoteparent-for-kafka-headers/336183 "2023-06-16T01:57:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jack\_Shirazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_shirazi/32/91641_2.png) [@Jack\_Shirazi](https://discuss.elastic.co/u/Jack_Shirazi)\
**Post date:** [June 19, 2023, 12:50pm UTC](https://discuss.elastic.co/t/public-api-using-starttransactionwithremoteparent-for-kafka-headers/336183/2 "2023-06-19T12:50:55Z")

</div>

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

---

_[View the full topic](https://discuss.elastic.co/t/public-api-using-starttransactionwithremoteparent-for-kafka-headers/336183)._
