# Not receiving transaction

**URL:** <https://discuss.elastic.co/t/not-receiving-transaction/252363>\
**Category:** APM\
**Tags:** nodejs\
**Created:** [October 16, 2020, 3:21pm UTC](https://discuss.elastic.co/t/not-receiving-transaction/252363 "2020-10-16T15:21:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![keon109](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@keon109](https://discuss.elastic.co/u/keon109)\
**Post date:** [October 16, 2020, 3:21pm UTC](https://discuss.elastic.co/t/not-receiving-transaction/252363/1 "2020-10-16T15:21:14Z")

</div>

We have a project with multiple NodeJS components. In all of the project we have built in the APM connection. Every component works fine except one. For this one we receive the Metrics in APM but not the Transactions. Therefor we think the connection with APM is fine, probelly something else is wrong.

Some info :  
• APM on premise: 7.9  
• NodeJS : V12  
• elastic-apm-node : 3.7.0

What have done already:  
• Starting the APM als first.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/f/5fac9aa774d1f1a12cb220a99136afa0a1f697f2.png)

• Downgrade NodeJS to V10

Is there someone who has the same problem and has a solution?

---

<div class="post-metadata">

**Author:** ![alanstorm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alanstorm/32/77134_2.png) [@alanstorm](https://discuss.elastic.co/u/alanstorm)\
**Post date:** [October 21, 2020, 5:01am UTC](https://discuss.elastic.co/t/not-receiving-transaction/252363/2 "2020-10-21T05:01:37Z")

</div>

Hey there @keon109, nice to meet you.

There are myriad reasons why a component or service might be sending metrics without generating transactions.

Looking at your code, a few questions that might help clarify things comes to mind

1. Are all these "components" using the same source code, or is each component a different service/application?

2. I noticed that your code is using an `import` statement. What are you using to transpile your ES6 imports into code that Node.js can understand?

3. What web framework are you using in `./app` that you expect to be generating transactions?

If you can answer those questions, folks may be better able to help you get to the bottom of things.

---

<div class="post-metadata">

**Author:** ![keon109](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@keon109](https://discuss.elastic.co/u/keon109)\
**Post date:** [October 21, 2020, 7:59am UTC](https://discuss.elastic.co/t/not-receiving-transaction/252363/3 "2020-10-21T07:59:51Z")

</div>

Hey Alanstorm, thanks for the response....

To answer your questions:

1. Each component is a different application
2. We use Babel (cli: 7.2.3, core: 7.3.4, node: 7.2.2 and polyfill: 7.0.0)
3. The framwork is Express.js (4.14.1)

Hope this will help you to find mine problem

---

<div class="post-metadata">

**Author:** ![alanstorm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alanstorm/32/77134_2.png) [@alanstorm](https://discuss.elastic.co/u/alanstorm)\
**Post date:** [October 21, 2020, 9:33pm UTC](https://discuss.elastic.co/t/not-receiving-transaction/252363/4 "2020-10-21T21:33:53Z")

</div>

That's useful information, thank you @keon109. Express is definitely a supported framework, so we're good there and can move on to the next set of questions.

You mentioned you're using Babel -- what does the _final_ compiled source file that you're running via NodeJS look like? Is the elastic-apm-node `require` still at the top?

What does your invocation of node look like that starts the application?

The basic gist of these questions is trying to understand _the actual_ JavaScript code that node is running for your application. Once we've got these answered, we'll either know the problem, or can move on to debugging your actual application.

---

<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:** [November 11, 2020, 5:34pm UTC](https://discuss.elastic.co/t/not-receiving-transaction/252363/5 "2020-11-11T17:34:18Z")

</div>

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