opentelemetry-dotnet-instrumentation icon indicating copy to clipboard operation
opentelemetry-dotnet-instrumentation copied to clipboard

Add `OTEL_LOG_LEVEL` support

Open pellared opened this issue 3 years ago • 2 comments
trafficstars

What

Add support for OTEL_LOG_LEVEL. The supported values could be:

  • none
  • error
  • warn
  • info
  • debug

Why

It would be good to add a possibility to configure the logging level.

Origin of the proposed values: https://github.com/open-telemetry/opentelemetry-specification/issues/2039

I think it can be done after 0.1.0-beta.

pellared avatar Feb 17 '22 08:02 pellared

SIG meeting notes

Check how .NET SDK does it and try to keep it in line. We can consider to work on it in several steps:

  1. Add support in our managed code
  2. Add support in out native code
  3. Standardize/correlate with SDK logs?
  4. ?

We can try addressing it quickly post-beta. For beta we can hardcode the debug level.

pellared avatar Feb 23 '22 18:02 pellared

Related comment: https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/pull/458#discussion_r844601916

pellared avatar Apr 08 '22 09:04 pellared