opentelemetry-dotnet-instrumentation
opentelemetry-dotnet-instrumentation copied to clipboard
Add `OTEL_LOG_LEVEL` support
trafficstars
What
Add support for OTEL_LOG_LEVEL. The supported values could be:
noneerrorwarninfodebug
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.
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:
- Add support in our managed code
- Add support in out native code
- Standardize/correlate with SDK logs?
- ?
We can try addressing it quickly post-beta. For beta we can hardcode the debug level.
Related comment: https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/pull/458#discussion_r844601916