# Monitoring non-directly connected services with common attribute in Request Header

**URL:** <https://community.dynatrace.com/t/monitoring-non-directly-connected-services-with-common-attribute-in-request-header/46082>\
**Category:** Open Q&A\
**Tags:** distributed-traces-classic, dynatrace-managed, metric-events\
**Created:** [June 12, 2024, 1:11pm UTC](https://community.dynatrace.com/t/monitoring-non-directly-connected-services-with-common-attribute-in-request-header/46082 "2024-06-12T13:11:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bshah6](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@bshah6](https://community.dynatrace.com/u/bshah6)\
**Post date:** [June 12, 2024, 1:11pm UTC](https://community.dynatrace.com/t/monitoring-non-directly-connected-services-with-common-attribute-in-request-header/46082/1 "2024-06-12T13:11:09Z")

</div>

Hello,

We are having event driven workflow calls via RabbitMQ.

For e.g.

ServiceA receives the request (say trace start timestamp T1), process it and at the end-of-processing places message to a queue (=topicA)

ServiceB picks-up the message and process it. At the end-of-processing places message to a queue (=topicB)

ServiceC picks-up the message from queue (say trace start timestamp T2) and updates Database.

Message carries common workflowID which is observed in all service carries this WorkFlowID in the request header.

We want to create M&A capability for T2-T1.

 ![bshah6_0-1718197625723.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/fc3c6299e25bdd8819723284afabc021b1fdd1c6.png)

Thank you in advance for your suggestion.

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [June 12, 2024, 1:31pm UTC](https://community.dynatrace.com/t/monitoring-non-directly-connected-services-with-common-attribute-in-request-header/46082/2 "2024-06-12T13:31:13Z")

</div>

Tracing for Rabbit MQ works already. Since your services are .Net based make sure you enable the support for it in your Oneagent features: **Settings** → **Preferences** → **Oneagent features** → **switch on ".NET messaging&nbsp;Rabbit**** MQ Sensor **** V2**"

---

<div class="post-metadata">

**Author:** ![bshah6](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@bshah6](https://community.dynatrace.com/u/bshah6)\
**Post date:** [June 12, 2024, 3:40pm UTC](https://community.dynatrace.com/t/monitoring-non-directly-connected-services-with-common-attribute-in-request-header/46082/3 "2024-06-12T15:40:42Z")

</div>

Yes, we have enabled RMQ sensor and we are seeing it reflected in the distributed traces. My question however is, since my custom metric is based on the two different services start time, how to get/extract start-time for each of services.

T2 is start time of Service C

T1 is start time for Service A

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [June 13, 2024, 7:24am UTC](https://community.dynatrace.com/t/monitoring-non-directly-connected-services-with-common-attribute-in-request-header/46082/4 "2024-06-13T07:24:11Z")

</div>

Ah now I got it right.  
I fear your only way to get to this data is via a DQL query on spans (traces on grail).

The other idea how this could be achieved is via BizEvents, but since Dynatrace still doesn’t support the creation of BizEvents from code-level sensors (only from incoming http calls) you would have to implement the ingestion of a BizEvent yourself in the producer/consumer …
