- Notifications
You must be signed in to change notification settings - Fork766
Add line-specific filter to catch warning#3164
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/export/__init__.pyShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
rafikdraoui commentedFeb 13, 2023
Thanks! This fixes the immediate bug of warnings being wrongfully enabled, but it doesn't fix the underlying issue of the need to work around this specific deprecation warning. I'm not familiar with the project, so I could be wrong, but it seems to me like the real fix for this issue would be to stop using the deprecated function in the first place. If the workaround is a temporary measure to bridge the gap between deprecation and complete removal of the function, then it might be worth adding a comment about it as a note to people unfamiliar with the reason behind it, and as a reminder to clean it up later 🙂 |
* feat: OTel tracing media ops initial instrumentation* use download class name as span name* avoid asserting filtered warnings from otel peropen-telemetry/opentelemetry-python#3164
* feat: introduce OpenTelemetry Tracing decorators (#1257)* feat: introduce OpenTelemetry Tracing decorators* update test coverage* add tests, update fixture* update noxfile, extras; remove print* update unit test* review comments* feat: instrument metadata ops with OTel tracing (#2) (#1267)* feat: instrument metadata ops with Otel tracing* update README plus test* update decorator name per review session* fix typo in readme* feat: OTel tracing media ops initial instrumentation (#1280)* feat: OTel tracing media ops initial instrumentation* use download class name as span name* avoid asserting filtered warnings from otel peropen-telemetry/opentelemetry-python#3164* add copyright and preview note* comments
Uh oh!
There was an error while loading.Please reload this page.
Fixes#3163
This is another approach to solve the issue#3147 intends to solve but without using
catch_warningswhich is not thread-safe.