Opentelemetry-js: Default log level

Created on 29 Nov 2019  路  7Comments  路  Source: open-telemetry/opentelemetry-js

Hello I recently instrumented a process that makes many queries to 3rd party apis. I used the http and dns plugins. My log sink is being flooded with noise. What is the suggested approach? I am using default sampling rate and Jaeger exporter.

Agreed

Most helpful comment

Per SIG this will be changed to INFO when we go from alpha to beta. add examples for override

All 7 comments

I've adjusted the tracer's logLevel: opentelemetry.LogLevel.ERROR as per the getting started guide.

Should we maybe make the default log level info ?

The current default LogLevel is DEBUG and default Logger is ConsoleLogger, maybe we can change ConsoleLogger -> NoopLogger or DEBUG -> ERROR.

Is there documentation about the use case between ConsoleLogger and NoopLogger? I take it the name should be self explanatory but I am still unsure.

Furthermore, would there be any benefit to have structured logging for error logs in production in particular, and if so would it be alright to implement this via pino?

@naseemkullah
ConsoleLogger logs to the console and NoopLogger doesn't do anything, i don't think we have specific documentation yet though.

There are always benefit having more implementation of our API to better suit end-users way of doing so i guess we could have a dedicated package PinoLogger which implement structured logging.

Thanks for explaining @vmarchaud , a JsonLogger might be nice, good to know we can add it in the future.

Per SIG this will be changed to INFO when we go from alpha to beta. add examples for override

Was this page helpful?
0 / 5 - 0 ratings