Skip to content
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

Add line-specific filter to catch warning #3164

Merged
merged 4 commits into from
Feb 13, 2023

Conversation

ocelotl
Copy link
Contributor

@ocelotl ocelotl commented Feb 6, 2023

Fixes #3163

This is another approach to solve the issue #3147 intends to solve but without using catch_warnings which is not thread-safe.

@ocelotl ocelotl added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Feb 6, 2023
@ocelotl ocelotl requested a review from a team February 6, 2023 19:01
@ocelotl ocelotl self-assigned this Feb 6, 2023
@srikanthccv srikanthccv reopened this Feb 13, 2023
@srikanthccv srikanthccv enabled auto-merge (squash) February 13, 2023 17:40
@srikanthccv srikanthccv merged commit acc11a0 into open-telemetry:main Feb 13, 2023
@ocelotl ocelotl deleted the issue_3163 branch February 13, 2023 21:59
@ocelotl ocelotl mentioned this pull request Feb 13, 2023
6 tasks
@rafikdraoui
Copy link

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 🙂

cojenco added a commit to cojenco/python-storage that referenced this pull request May 23, 2024
cojenco added a commit to googleapis/python-storage that referenced this pull request May 30, 2024
* feat: OTel tracing media ops initial instrumentation

* use download class name as span name

* avoid asserting filtered warnings from otel per open-telemetry/opentelemetry-python#3164
cojenco added a commit to googleapis/python-storage that referenced this pull request Jun 26, 2024
* 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 per open-telemetry/opentelemetry-python#3164

* add copyright and preview note

* comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove DeprecationWarning without disturbing warning filters
5 participants