# Custom Distributed transactions linked with instrumented spans

**URL:** <https://discuss.elastic.co/t/custom-distributed-transactions-linked-with-instrumented-spans/209584>\
**Category:** APM\
**Tags:** nodejs\
**Created:** [November 26, 2019, 9:46pm UTC](https://discuss.elastic.co/t/custom-distributed-transactions-linked-with-instrumented-spans/209584 "2019-11-26T21:46:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elastichooch](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elastichooch](https://discuss.elastic.co/u/elastichooch)\
**Post date:** [November 26, 2019, 9:46pm UTC](https://discuss.elastic.co/t/custom-distributed-transactions-linked-with-instrumented-spans/209584/1 "2019-11-26T21:46:14Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** : 7.2

**Elasticsearch version** : 7.2

**APM Server version** : 7.2

**APM Agent language and version** : node.js 3.2 and rum 4.6  
**Browser version** :

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:

**Fresh install or upgraded from other version?**

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**: I want to create custom transactions that the instrumented http transactions are linked to. Currently, the instrumented transactions are their own transactions.

**Steps to reproduce** :  
1.  
2.  
3.

**Errors in browser console (if relevant)**:

**Provide logs and/or server output (if relevant)**:

---

<div class="post-metadata">

**Author:** ![elastichooch](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@elastichooch](https://discuss.elastic.co/u/elastichooch)\
**Post date:** [November 27, 2019, 9:30pm UTC](https://discuss.elastic.co/t/custom-distributed-transactions-linked-with-instrumented-spans/209584/2 "2019-11-27T21:30:01Z")

</div>

I have a react application along with services in node.js and java. A button click in react will fire off several http requests to the node and java services in parallel. I would like to have a single transaction that ties it all together. One trace per click.

---

<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:** [December 18, 2019, 5:30pm UTC](https://discuss.elastic.co/t/custom-distributed-transactions-linked-with-instrumented-spans/209584/3 "2019-12-18T17:30:01Z")

</div>

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