Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Stackdriver Profiling Nodejs which documentation is right regarding logLevel?

I was adding Profiling in my Google CLoud Nodejs App and i see here in the documentation docs/profiling-nodejs that suported loglevels are

  • 0: disables all agent logging (default)
  • 1: enables error logging
  • 2: enables warning logging
  • 3: enables debug logging

But here in the Sample App documentation cloud-profiler-nodejs suported loglevels are

  • Setting logLevel to 0 will disable logging
  • 1 sets log level to error
  • 2 sets it to warn
  • 3 sets it to info
  • 4 sets it to debug.

So can anyone please tell me which documentation is right and which one is wrong ?

like image 892
Sudhanshu Gaur Avatar asked Jun 13 '26 00:06

Sudhanshu Gaur


2 Answers

I posted the same question to Google group Forum and got the solution

The sample is based on the Alpha release of Stackdriver Profiler, while the product’s documentation is on the Beta release.

like image 187
Sudhanshu Gaur Avatar answered Jun 15 '26 12:06

Sudhanshu Gaur


The discrepancy you noted is now corrected.

https://github.com/googleapis/cloud-profiler-nodejs#changing-log-level https://cloud.google.com/profiler/docs/profiling-nodejs#agent_logging

like image 39
Kalyana C Avatar answered Jun 15 '26 12:06

Kalyana C