Issue with Documentation on Logging in Opentelemetry

TLDR tim pointed out an issue with the documentation for logging using opentelemetry. nitya-signoz provided an updated example.

Photo of tim
Wed, 24 May 2023 21:27:22 UTC

Looks like there is an issue with the documentation, for logging references `opentelemetry.sdk._logs.set_log_emitter_provider`, which is no longer provider by `pentelemetry.sdk._logs`

Photo of tim
Thu, 25 May 2023 00:03:07 UTC

The reason why logs is in a private module is because logs are still experimental, so apparently the api is changing without warning a lot at this point. Dang.

Photo of nitya-signoz
Thu, 25 May 2023 04:49:55 UTC

Thanks for mentioning it. Yes, it seems to be updated. Please look at the latest example here