Skip to content

Commit 6e4712d

Browse files
author
Emanuele Palazzetti
committed
[docs] add Resolving deprecation warnings section
1 parent af474fb commit 6e4712d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

ddtrace/utils/importlib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import absolute_import
2+
13
from importlib import import_module
24

35

docs/index.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,22 @@ Information will be lost but it allows to control any potential performance impa
421421
tracer.sampler = RateSampler(sample_rate)
422422

423423

424+
Resolving deprecation warnings
425+
------------------------------
426+
Before upgrading, it’s a good idea to resolve any deprecation warnings raised by your project.
427+
These warnings must be fixed before upgrading, otherwise ``ddtrace`` library will not work
428+
as expected. Our deprecation messages include the version where the behavior is altered or
429+
removed.
430+
431+
In Python, deprecation warnings are silenced by default, and to turn them on you may add the
432+
following flag or environment variable::
433+
434+
$ python -Wall app.py
435+
436+
# or
437+
438+
$ PYTHONWARNINGS=all python app.py
439+
424440

425441
Advanced Usage
426442
--------------

0 commit comments

Comments
 (0)