-
Notifications
You must be signed in to change notification settings - Fork 467
Open
Labels
Description
Tracer Version(s)
2.20.1+
Python Version(s)
3.12.8
Pip Version(s)
25.0.1
Bug Report
The latest ddtrace documentation references config.trace_headers https://ddtrace.readthedocs.io/en/stable/advanced_usage.html#headers-tracing as a valid method in which to configure storing request & response headers in tags on the trace.
However, it appears this functionality was deprecated in 2.20.1 and removed in 3.0.0+. No alternative for the functionality appears to have been documented as part of the 3.0.0 upgrade.
Ref:
- https://github.com/DataDog/dd-trace-py/releases/tag/v2.20.1
- chore(configs): make rc and http configs internal [3.0] [backport 2.20] #12086
Reproduction Code
from ddtrace import config
config.trace_headers(["Cache-Control"])
Error Logs
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/.venv/lib/python3.12/site-packages/ddtrace/settings/_config.py", line 697, in __getattr__
raise AttributeError(f"{type(self)} object has no attribute {name}, {name} is not a valid configuration")
AttributeError: <class 'ddtrace.settings._config.Config'> object has no attribute trace_headers, trace_headers is not a valid configuration
Libraries in Use
ddtrace = "3.16.2"
Operating System
No response