06 Jan 2022 03:11 PM - last edited on 14 Feb 2023 12:42 PM by Ana_Kuzmenchuk
Hi, we're trying to setup OneAgent to monitor a Node.js web app that runs in GCP Cloud Run.
From the documentation and Dynatrace support I understand that there is no out of the box solution (yet, hopefully ^^).
We found 2 methods to install OneAgent "in" the app :
1 - https://www.npmjs.com/package/@dynatrace/oneagent
2 - https://www.dynatrace.com/support/help/shortlink/opent-nodejs
We already tried option 1 but the only thing we see in Dynatrace UI is that the token is used when the app is launched, nothing seems to be captured, not a single web request.
Can someone explain the difference between 1 and 2 And tell if 2 has better chance to work?
06 Jan 2022 08:56 PM
07 Jan 2022 09:41 AM - edited 07 Jan 2022 09:43 AM
If I understand the documentation correctly, using the SDK means hardcoding any trace that we want to see in Dynatrace.
10 Jan 2022 06:26 PM
Yes, that's correct. It's similar to option 2 - manual instrumentation. For sure, manual instrumentation will work but you have extra work to do.
I would give option 2 - automatic instrumentation, a try. Otherwise, you will have to hardcode every trace.
Best,
13 Jan 2022 09:48 AM
The automatic instrumentation is "With OneAgent" does that mean that I need a OneAgent running in Cloud Run at the same time ?