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
Use
warnings.warnforDeprecationWarningsandlogger.warningfor everything else.Anything emitted via
warnings.warnshould 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