# how to capture service flow among multiple processes by oneagent SDK for C

**URL:** <https://community.dynatrace.com/t/how-to-capture-service-flow-among-multiple-processes-by-oneagent-sdk-for-c/21311>\
**Category:** Open Q&A\
**Tags:** oneagent-sdk\
**Created:** [July 17, 2019, 11:16pm UTC](https://community.dynatrace.com/t/how-to-capture-service-flow-among-multiple-processes-by-oneagent-sdk-for-c/21311 "2019-07-17T23:16:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiroshi\_aoki](https://avatars.discourse-cdn.com/v4/letter/h/258eb7/32.png) [@hiroshi\_aoki](https://community.dynatrace.com/u/hiroshi_aoki)\
**Post date:** [July 17, 2019, 11:16pm UTC](https://community.dynatrace.com/t/how-to-capture-service-flow-among-multiple-processes-by-oneagent-sdk-for-c/21311/1 "2019-07-17T23:16:19Z")

</div>

When we need to capture service flow among multiple processes, is the following image correct?

 ![21341-sdk.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/1/21e78aff0ba2e7abc467d903a34d8992c451ef9a.png)

Or the first process need to call outgoingremotecall() and create a tag and then all preceding processes call incomingremotecalltrace(),share the tag the first process created?

---

<div class="post-metadata">

**Author:** ![Alram\_Lechner](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Alram\_Lechner](https://community.dynatrace.com/u/Alram_Lechner)\
**Post date:** [July 18, 2019, 4:57am UTC](https://community.dynatrace.com/t/how-to-capture-service-flow-among-multiple-processes-by-oneagent-sdk-for-c/21311/2 "2019-07-18T04:57:06Z")

</div>

Hi Aoki,

your chart is ok. don’t forget to call tracer\_end(…) - thats missing in your chart. for every tracer\_start() call, you need to have a tracer\_end() call.

about your question: no - please don’t reuse (share) tags. a tag received by an outgoing tracer, should only be used once to start an incoming tracer.

BR Alram

---

<div class="post-metadata">

**Author:** ![hiroshi\_aoki](https://avatars.discourse-cdn.com/v4/letter/h/258eb7/32.png) [@hiroshi\_aoki](https://community.dynatrace.com/u/hiroshi_aoki)\
**Post date:** [July 18, 2019, 5:31am UTC](https://community.dynatrace.com/t/how-to-capture-service-flow-among-multiple-processes-by-oneagent-sdk-for-c/21311/3 "2019-07-18T05:31:12Z")

</div>

Thank you. we will start implementing oneagent SDK to our prospect’s program sources based on your advice.
