-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'set_logger_provider' no longer importable from 'opentelemetry.sdk._logs' #3088
Comments
same ttrying to run the example and it failed |
Yes, the example shown here: no longer works with the |
I've encountered the same problem and searched for the method in the source code and found it at a new location: |
Would someone like to send a PR to update the example? |
Yes, I'd be happy to send a PR. |
A week ago I was able to run the example for logging in https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples/logs.
Steps to reproduce
I install either version via:
or
Then run the following code:
What is the expected behavior?
Should import without any issues.
What is the actual behavior?
Additional context
I found that when I installed
opentelemetry-exporter-otlp==1.14.0
,opentelemetry-sdk==1.15.0
was installed as well. When I installedopentelemetry-sdk==1.14.0
, everything works fine again.The text was updated successfully, but these errors were encountered: