Skip to content

Use warnings.warn for deprecations, and logger.warning for everything else #5010

Description

@sentrivana

Use warnings.warn for DeprecationWarnings and logger.warning for everything else.

Anything emitted via warnings.warn should have an easy fix, because it might potentially block folks' test suites if they run it with -W.

Add a deprecation helper.

Original POTel PR (just makes everything into warnings): #4180

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions