cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Monitoring a Node.js web app running in GCP Cloud Run

AymericM
Participant

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?

4 REPLIES 4

andreborges
Observer

Hi, 

Have you tried to use the SDK? 

https://github.com/Dynatrace/OneAgent-SDK-for-NodeJs

 

Best,

If I understand the documentation correctly, using the SDK means hardcoding any trace that we want to see in Dynatrace.

andreborges
Observer

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,

The automatic instrumentation is "With OneAgent" does that mean that I need a OneAgent running in Cloud Run at the same time ?

Featured Posts