06 Jan 2022 07:11 AM - last edited on 14 Feb 2023 04:42 AM 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?
If I understand the documentation correctly, using the SDK means hardcoding any trace that we want to see in Dynatrace.
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.
The automatic instrumentation is "With OneAgent" does that mean that I need a OneAgent running in Cloud Run at the same time ?