# Tracing mobile applications with backends

**URL:** <https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625>\
**Category:** Real User Monitoring\
**Tags:** mobile-monitoring\
**Created:** [September 22, 2022, 4:54pm UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625 "2022-09-22T16:54:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![luis\_mpa](https://avatars.discourse-cdn.com/v4/letter/l/9e8a1a/32.png) [@luis\_mpa](https://community.dynatrace.com/u/luis_mpa)\
**Post date:** [September 22, 2022, 4:54pm UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625/1 "2022-09-22T16:54:33Z")

</div>

Hello! I wonder if it is possible to have distributed tracing from the mobile application to the backend part (for example, a mobile application that calls a series of microservices deployed in a Kubernetes).

If possible, is that traceability based on the W3C Trace Context standard?

Thank you!

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 22, 2022, 7:52pm UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625/2 "2022-09-22T19:52:59Z")

</div>

Hello&nbsp;[@luis\_mpa](https://community.dynatrace.com/user/27887)&nbsp;,  
when you instrument your mobile application with Dynatrace, then those linking works. If you use auto-instrumentation and a supported library (typically the common case), then Dynatrace will automatically inject HTTP request header (X-Dynatrace) into the requests made from the mobile app and those headers will be picked up by the OneAgent monitoring the backend. If you don’t use auto instrumentation you must add those headers by yourself.

So W3C context is not used, but the Dynatrace headers. There is no option to use w3c headers as of now for this.

---

<div class="post-metadata">

**Author:** ![luis\_mpa](https://avatars.discourse-cdn.com/v4/letter/l/9e8a1a/32.png) [@luis\_mpa](https://community.dynatrace.com/u/luis_mpa)\
**Post date:** [September 23, 2022, 6:56am UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625/3 "2022-09-23T06:56:36Z")

</div>

Thank you very much for your quick reply, [@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;! 🙂

What happens if we have Dynatrace configured to use the W3C Trace Context headers? Is there mobile--\>backend traceability even if the mobile SDK uses X-Dynatrace or is it broken?

Has Dynatrace planned to upgrade mobile traceability by adopting the W3C Trace Context? If so, is there a date?

Thanks again!

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 23, 2022, 7:20am UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625/4 "2022-09-23T07:20:22Z")

</div>

[@luis\_mpa](https://community.dynatrace.com/user/27887)&nbsp;, Dynatrace uses both on the backend side. If you have W3C tracing headers enabled (that’s enabled by default now in new environments), it does not interfere in any way, nothing is broken, Dynatrace picks up both headers.

But for mobile app → mobile backend, the x-dynatrace is used.&nbsp;I’m not aware of any plans to use W3C headers for Dynatrace Mobile SDKs.

---

<div class="post-metadata">

**Author:** ![reginaldo\_alves](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@reginaldo\_alves](https://community.dynatrace.com/u/reginaldo_alves)\
**Post date:** [January 16, 2024, 5:01pm UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625/5 "2024-01-16T17:01:40Z")

</div>

Hi&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;,

I have a situation where the backend is an API Gateway based on SaaS and is not possible to install oneagent to use x-dynatrace and the idea is use the opentelemetry that supports the W3C trace context standard.

The frontend was developed in flutter and the oneagent instrumentation was made with flutter framework.

Do you know about any update on Dynatrace’s roadmap about the implementation of W3C on additionally to x-dynatrace?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [January 16, 2024, 7:49pm UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625/6 "2024-01-16T19:49:05Z")

</div>

[@paul\_kapeller](https://community.dynatrace.com/user/53816)&nbsp;are there any plans of bringing W3C trace context to Mobile SDK when it comes to stitching user actions to traces in addition to x-dynatrace headers?

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [February 15, 2024, 1:13pm UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625/7 "2024-02-15T13:13:20Z")

</div>

There are&nbsp;plans to bring W3C trace context to Mobile SDK in the future and have it replace the x-dynatrace MT\_ mobile tag in the long run. This is currently researched on how to best handle it with an initial phase where both headers can coexist for a smooth transition.

---

<div class="post-metadata">

**Author:** ![reginaldo\_alves](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@reginaldo\_alves](https://community.dynatrace.com/u/reginaldo_alves)\
**Post date:** [December 13, 2024, 1:48pm UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625/8 "2024-12-13T13:48:19Z")

</div>

Hi&nbsp;[@Patrick\_H](https://community.dynatrace.com/user/31862)&nbsp;and&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;,

Is there any update about this?

Regards,

Reginaldo.

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [December 17, 2024, 1:48pm UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625/9 "2024-12-17T13:48:05Z")

</div>

W3C trace context on web requests will be available for RUM agents (web, mobile) in RUM on Grail, thats for sure - I just can’t give a timeline when this will be released.

---

<div class="post-metadata">

**Author:** ![reginaldo\_alves](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@reginaldo\_alves](https://community.dynatrace.com/u/reginaldo_alves)\
**Post date:** [February 10, 2025, 6:49pm UTC](https://community.dynatrace.com/t/tracing-mobile-applications-with-backends/36625/10 "2025-02-10T18:49:33Z")

</div>

Thank you Patrick,

We’re looking forward for this feature.

I appreciate if you can to warn us when this feature is released.

Regards,

Reginaldo
