Skip to content

[BUG]: ddtrace documentation references trace_headers #15004

@Cardds

Description

@Cardds

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:

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions