You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced_usage.rst
-45Lines changed: 0 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -296,51 +296,6 @@ propagate a `rpc_metadata` dictionary over the wire::
296
296
span.set_tag('my_rpc_method', method)
297
297
298
298
299
-
.. _`Upgrading and deprecation warnings`:
300
-
301
-
Upgrading and deprecation warnings
302
-
----------------------------------
303
-
304
-
Before upgrading, we recommend resolving any deprecation warnings raised in your application. The messages for the deprecation warnings include the version when the API will be changed or removed.
305
-
306
-
.. _upgrade-0.x:
307
-
308
-
Upgrading from 0.x to 1.x
309
-
^^^^^^^^^^^^^^^^^^^^^^^^^
310
-
311
-
As of v0.60.0, you can use warning filters for ``ddtrace.DDTraceDeprecationWarning`` to find and replace usages of deprecated features.
Otherwise, you can set the environment variable ``DD_TRACE_RAISE_DEPRECATIONWARNING`` to configure the warning filter::
319
-
320
-
DD_TRACE_RAISE_DEPRECATIONWARNING=1 python app.py
321
-
322
-
323
-
Though ``ddtrace.DDTraceDeprecationWarning`` is not available before v0.60.0, you can still enable all deprecation warnings and filter the application or tests logs for deprecations specific to the ``ddtrace`` library::
324
-
325
-
$ python -Wall app.py
326
-
327
-
# or
328
-
329
-
$ PYTHONWARNINGS=all python app.py
330
-
331
-
332
-
In addition to deprecation warnings, you can search a code base using the following patterns to identify the deprecated environment variables::
warnings <https://docs.python.org/3/library/warnings.html>`_ for deprecations
16
+
with an additional warning category ``ddtrace.DDTraceDeprecationWarning``.
17
+
18
+
This warning category can be used in configuring pytest `warnings capture <https://docs.pytest.org/en/6.2.x/warnings.html>`_ to turn warnings into errors::
In addition, the environment variable ``DD_TRACE_RAISE_DEPRECATIONWARNING`` is provided to configure the warning filter to raise an exception in an application instrumented with ddtrace::
0 commit comments