# Parentid on frontend end and backend agent is not associated

**URL:** <https://discuss.elastic.co/t/parentid-on-frontend-end-and-backend-agent-is-not-associated/222284>\
**Category:** APM\
**Tags:** dotnet, rum\
**Created:** [March 5, 2020, 12:24pm UTC](https://discuss.elastic.co/t/parentid-on-frontend-end-and-backend-agent-is-not-associated/222284 "2020-03-05T12:24:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [March 5, 2020, 12:24pm UTC](https://discuss.elastic.co/t/parentid-on-frontend-end-and-backend-agent-is-not-associated/222284/1 "2020-03-05T12:24:48Z")

</div>

**Kibana version** : 7.4

**Elasticsearch version** : 7.4

**APM Server version** : 7.6

**APM Agent language and version** : [ASP.NET](http://ASP.NET) CORE and javascripts

**Browser version** : chrome 79

I want to use a parent.id to query the link map from the frontend to the backend.  
how to do it？

 ![20200305202130](https://us1.discourse-cdn.com/elastic/original/3X/e/f/efac4452d8845d592c7b7306de2e5aeab44f6fd9.jpeg)

---

<div class="post-metadata">

**Author:** ![Hamidreza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza/32/21369_2.png) [@Hamidreza](https://discuss.elastic.co/u/Hamidreza)\
**Post date:** [March 5, 2020, 3:01pm UTC](https://discuss.elastic.co/t/parentid-on-frontend-end-and-backend-agent-is-not-associated/222284/2 "2020-03-05T15:01:00Z")

</div>

Hi @wajika,

Thanks for using Elastic APM.

The RUM agent adds a special header called `elastic-apm-traceparent` to http request. This header is needed so that the backend agent (in this case .NET agent) knows to use the correct parent ID. However, this header is only added to same-origin requests by default.

Would you please check the http request to see if `elastic-apm-traceparent` is added to the headers?

If the request is made to an origin that is different to the one that the page is hosted on, you should add that origin to the `distributedTracingOrigins` config on the RUM agent. You can find more information on our [distributed tracing guide](https://www.elastic.co/guide/en/apm/agent/rum-js/current/distributed-tracing-guide.html)

Cheers,  
Hamid

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [March 6, 2020, 3:18am UTC](https://discuss.elastic.co/t/parentid-on-frontend-end-and-backend-agent-is-not-associated/222284/3 "2020-03-06T03:18:38Z")

</div>

My frontend ip is 192.168.4.199 and the backend ip is 192.168.10.95. I added the distributedTracingOrigins: ['[http://192.168.10.95:8014](http://192.168.10.95:8014)']

Rum agent is configured as follows

 ![11115834639264200](https://us1.discourse-cdn.com/elastic/original/3X/1/6/160f82b680f708f684ddbf7a8c6f5ae14f909bf4.png)

But I checked the browser console and found that the request was rejected.

 ![2222220200306111733](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cfd183fc148875328b7db749d290183f1f251899.png)

Can you tell me what's wrong？

---

<div class="post-metadata">

**Author:** ![Hamidreza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza/32/21369_2.png) [@Hamidreza](https://discuss.elastic.co/u/Hamidreza)\
**Post date:** [March 6, 2020, 9:22am UTC](https://discuss.elastic.co/t/parentid-on-frontend-end-and-backend-agent-is-not-associated/222284/4 "2020-03-06T09:22:13Z")

</div>

There's a typo in the configuration of the RUM agent, you have set `DistributedTracingOrigins` (with capital D) but the correct config option is `distributedTracingOrigins`.

Would you please fix the config and try again?

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [March 7, 2020, 1:55am UTC](https://discuss.elastic.co/t/parentid-on-frontend-end-and-backend-agent-is-not-associated/222284/5 "2020-03-07T01:55:58Z")

</div>

Yes, the problem is solved. Thank you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 27, 2020, 9:56pm UTC](https://discuss.elastic.co/t/parentid-on-frontend-end-and-backend-agent-is-not-associated/222284/6 "2020-03-27T21:56:02Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
