opentelemetry-python icon indicating copy to clipboard operation
opentelemetry-python copied to clipboard

docs: python log example should set levels at root logger, so that no logs are filter out

Open tczhao opened this issue 1 year ago • 1 comments

Python root logger has default level warning. With the current example, info and debug log will get filtered out

we should have additional line such as logging.getLogger().setLevel(logging.NOTSET), so that all logs are processed https://github.com/open-telemetry/opentelemetry-python/blob/af83ef151fae90a2bd96224add771e9bb20c33df/docs/examples/logs/example.py#L37

tczhao avatar May 17 '24 14:05 tczhao

Working on this issue

Rajamanosankari avatar Jun 24 '24 10:06 Rajamanosankari

Send another PR, as other PR was sent almost one year ago and there was no response from the author, @Rajamanosankari let us know if you can update your PR if not we can move forward with new one

hectorhdzg avatar Jun 13 '25 22:06 hectorhdzg