Skip to content

Commit

Permalink
docs: fix warning filter for v1 deprecations (DataDog#3337)
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Langdon <[email protected]>

Co-authored-by: Brett Langdon <[email protected]>
  • Loading branch information
majorgreys and brettlangdon authored Feb 25, 2022
1 parent 880a914 commit 5486e1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions releasenotes/notes/release-1.0-758fc917e40d7eb3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ prelude: >
.. note::
Before upgrading to v1.0.0, we recommend running tests with `warning filters <https://docs.python.org/3.8/library/warnings.html#warning-filter>`_ set to turning warnings into exceptions. For example::
Before upgrading to v1.0.0, we recommend installing ``ddtrace>=0.59.0,<1.0.0`` and running tests with `warning filters <https://docs.python.org/3.8/library/warnings.html#warning-filter>`_ set to raise ``ddtrace.warnings.DDTraceV1DeprecationWarning`` as errors or set the environment variable ``DD_TRACE_RAISE_DEPRECATIONWARNING``. For example::
$ PYTHONWARNINGS="error::DeprecationWarning:ddtrace[.*]" python tests.py
$ pytest -W="error::DeprecationWarning:ddtrace[.*]" tests.py
$ DD_TRACE_RAISE_DEPRECATIONWARNING=1 python tests.py
$ pytest -W "error::ddtrace.warnings.DDTraceDeprecationWarning" tests.py
Once all deprecation warnings are addressed you can safely upgrade to v1.0.0.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
upgrade:
- |
``ddtrace.warnings.DDTraceDeprecationWarning`` is removed.
- |
``DD_TRACE_RAISE_DEPRECATIONWARNING`` environment variable is removed.

0 comments on commit 5486e1a

Please sign in to comment.