# Propagate trace context to child threads

**URL:** <https://community.dynatrace.com/t/propagate-trace-context-to-child-threads/45187>\
**Category:** Open Q&A\
**Tags:** distributed-traces-classic\
**Created:** [April 17, 2024, 3:52pm UTC](https://community.dynatrace.com/t/propagate-trace-context-to-child-threads/45187 "2024-04-17T15:52:07Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![CW-Logic32](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@CW-Logic32](https://community.dynatrace.com/u/CW-Logic32)\
**Post date:** [April 17, 2024, 3:52pm UTC](https://community.dynatrace.com/t/propagate-trace-context-to-child-threads/45187/1 "2024-04-17T15:52:07Z")

</div>

Sorry if this has been asked before but this is a hard topic to search for.&nbsp; Most of the results I got were about applications doing “background tasks” that don’t need traced.&nbsp; That is not the case for me.

We have a LOT of apps that do a divide-and-conquer approach to request processing.&nbsp; Example:

1. A HTTP request comes in.
2. The request is broken down into some sub-components.
3. Multiple Threads are started, 1 per sub-component.
4. We wait for all the sub-requests to return.
5. Assemble a final response from all the sub-requests and return it.

We’d like to have distributed tracing properly group all the sub-requests into a single trace so Davis can properly root-cause issues with the sub-requests.&nbsp; Right now, we’re in a state where the parent request can experience a “problem” and that is all the information we get.&nbsp; The actual issue is in one of the sub-requests but we can’t drill down into it.

With OpenTracing/Zipkin, this is a super easy problem to solve.&nbsp; We can just propagate the trace context to the sub-thread and all is well.&nbsp; With Dynatrace, I can’t seem to find how to do that propagation with the trace context automatically created by Dynatrace.

So, my ask is: how can I manually propagate the automatically created trace context to a child thread without re-inventing tracing using OpenTracing?

---

_[View the full topic](https://community.dynatrace.com/t/propagate-trace-context-to-child-threads/45187)._
