opentelemetry-python
opentelemetry-python copied to clipboard
The logging signal doesn't have a default log emitter provider
As identified during the work for #2354, the log emitter provider doesn't have a default or noop implementation.
Does this apply to the logging? Unlike metrics and traces, logging doesn't have an API. In case tracing/metrics user adds new instrumentation code and may need the no-op. With logging SDK, we are only taking the whatever the logs emitted and exporting them to backend. If they don't want that then they can simply remove the OTLPHandler.
@codeboten Wdyt?
In my opinion, the NoOpX classes are the API implementation of the API, if there is no API, then there should not be any need for NoOpLogEmitter.
This is implemented by @lzchen here https://github.com/open-telemetry/opentelemetry-python/pull/3038