NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #486 most downloaded on PyPI
Datadog APM client library
Latest stable
4.17.2
Last release 3 days ago
19 Nov 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
5 versions withdrawn
withdrawn after publishing
10 years old
871 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Code Security: This fix solves an issue with fstrings where formatting was not applied to int parameters
internal: This fix resolves an error regarding the remote config module with payloads missing a lib_config entry
lib_config entrypymongo.pool.validate_sessionYour coding agent can read these notes before it upgrades. Set up the MCP server →
ASM: This fix resolves an issue where django login failure events may send wrong information of user existence.
FileNotFoundError.ddtrace.contrib.botocore.services module would fail raising an ImportErrorpropagation: This fix resolves an issue where the sampling decision-maker tag in tracestate propagation headers was clobbered by a default value.
None messages from confluent-kafka could cause crashes in the Kafka integration.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Vulnerability Management for Code-level (IAST): Add support for CMDi in langchain.
DD_CIVISIBILITY_ITR_ENABLED now defaults to true, and the Datadog API (configured via the Datadog dashboard) now determines whether code coverage and test skipping are enabled.botocore: Adds optional feature to propagate context between producers and consumers for AWS SQS, AWS SNS, and AWS Kinesis via <span class="title-ref">DD_BOTOCORE_PROPAGATION_ENABLED</span> environment variable. Adds optional feature to disable tracing of AWS SQS <span class="title-ref">poll()</span> operation and AWS Kinesis 'get_records()' operation when no data is consumed via <span class="title-ref">DD_BOTOCORE_EMPTY_POLL_ENABLED</span> environment variable.
tracing: Adds new tag <span class="title-ref">python_main_package</span> containing the name of the main package of the application. profiling: Adds new tag <span class="title-ref">python_main_package</span> containing the name of the main package of the application.
ASM: API Security schema collection is now officially supported for Django, Flask and FastAPI. It can be enabled in the tracer using environment variable DD_API_SECURITY_ENABLED=true It will only be active when ASM is also enabled.
elasticsearch: This allows custom tags to be set on Elasticsearch spans via the Pin interface.
botocore: This introduces tracing support for bedrock-runtime operations. See the docs for more information.
datastreams: this change adds kombu auto-instrumentation for datastreams monitoring. tracing: this change adds the DD_KOMBU_DISTRIBUTED_TRACING flag (default True)
Vulnerability Management for Code-level (IAST): Add support for CMDi in langchain.
botocore: Add the ability to inject trace context into the input field of botocore stepfunction start_execution and start_sync_execution calls.
Removes another place where we always load instrumentation telemetry, even if it is disabled
tracing: This introduces the ability to disable tracing at runtime based on configuration values sent from the Datadog frontend. Disabling tracing in this way also disables instrumentation telemetry.
tracing: Adds support for remote configuration of DD_TRACE_HEADER_TAGS
tracing: Add support for remote configuration of trace-logs correlation.
grpc/grpc_aio: reports the available target host in client spans as network.destination.ip if only an IP is available, peer.hostname otherwise.
span: Adds a public api for setting span links
starlette,fastapi: Trace background tasks using span links
ASM: This fix resolves an issue where an exception would be logged while parsing an empty body JSON request.
CI Visibility: fixes an issue where coverage data for suites could be lost for long-running test sessions, reducing the possibility of skipping tests when using the Intelligent Test Runner.
IAST: Don't split AST Assign nodes since it's not needed for propagation to work.
ASM: This fix resolves an issue where suspicious request blocking on request data was preventing API Security to collect schemas in FastAPI, due to route not being computed.
ASM: This fix resolves an issue where ASM custom blocking actions with a redirect action could cause the server to drop the response.
Fixed an incompatible version requirements for one of the internal dependencies that could have caused an exception to be raised at runtime with Python 3.12.
data_streams: This change fixes a bug leading to lag being reported as 1 offset instead of 0 offsets.
IAST: fixes import overhead when IAST is disabled.
Fix an incomplete support for pkg_resouces that could have caused an exception on start-up.
Fix an issue that caused an exception to be raised when trying to access resource files via pkg_resources.
Fix for an import issue that caused the pytest plugin to fail to properly initialize a test session and exit with an import exception.
openai: This fixes a bug that prevents logs from being correlated with traces in the Datadog UI.
langchain: This fixes a bug that prevents logs from being correlated with traces in the Datadog UI.
openai: This fix resolves an issue where an internal OpenAI method <span class="title-ref">SyncAPIClient._process_response</span> was not being patched correctly and led to to an AttributeError while patching.
profiling: handle a potential system error that may be raised when running a Celery-based application with CPython 3.11.
Fixed an issue that could have caused an exception as a result of a concurrent access to some internal value cache.
tracing: Ensures span links are serialized with the expected traceflag when DD_TRACE_API_VERSION=v0.4
ASM: This fix resolves an issue where IP Headers configured by the user in the environment could not work for frameworks handling requests with case insensitive headers like FastAPI.
Vulnerability Management for Code-level (IAST): Fixes a bug in the str aspect where encoding and errors arguments were not honored correctly.
Vulnerability Management for Code-level (IAST): Fix an unhandled ValueError in ast_function thrown in some cases (i.e. Numpy arrays when converted to bool).
opentelemetry: Ensures that span links are serialized in a json-compatible representation.
Pin importlib_metadata to 6.5.0 to avoid its issue 455 (https://github.com/python/importlib_metadata/issues/455).
profiler: Fixes a sigabrt when shutdown occurs during an upload
otel: Ensures all otel sampling decisions are consistent with Datadog Spans. This prevents otel spans in a distributed trace from being sampled differently than Datadog spans in the same trace.
tracing: Fix an issue where remote configuration values would not be reverted when unset in the UI.
tracing: Ensures hostnames are reported in statsd metrics if DD_TRACE_REPORT_HOSTNAME=True (default value is False).
DD_TRACE_PROPAGATION_STYLE from tracecontext,datadog to datadog,tracecontext. With this change w3c tracecontext headers will be parsed before datadog headers. This change is backwards compatible and should not affect existing users.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Vulnerability Management for Code-level (IAST): Ensure that Cookies vulnerabilities report only the cookie name.
pytest and unittest.aiohttp.request spans.bottle.request spans.falcon.request spans.molten.request spans.DD_KAFKA_DISTRIBUTED_TRACING_ENABLED=True for both the consumer and producer service.pytest plugin), enabled by setting the DD_CIVISIBILITY_LOG_LEVEL environment variable (with the same level names as Python logging levels).get_openai_token_cost_for_model import error in langhcain version 0.0.351 or later.ddtrace.context.Context are picklable.job.status span tag.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Vulnerability Management for Code-level (IAST): Adds Python 3.12 compatibility
<div id="remove-unsupported-pylons">
This removes the pylons integration, which does not support Python 3.
</div>
ASM: dependency telemetry metrics now will only report dependencies actually in use (imported) and will also report new imported modules periodically.
ASM: This introduces Threat Monitoring and Blocking on FastAPI.
- Custom Blocking This does not contain user blocking specific features yet.
tracing: Introduces support for OpenTracing Baggage Items with HTTP Propagation. Enable this support by DD_TRACE_PROPAGATION_HTTP_BAGGAGE_ENABLED=true. The Context._set_baggage_item and Context._get_baggage_item internal methods are provided for manual modifications to the Baggage Items. These API changes are subject to change.
dynamic instrumentation: Add support for more built-in container types, such as defaultdict, frozenset, OrderedDict and Counter.
Vulnerability Management for Code-level (IAST): Adds Python 3.12 compatibility
Optionally lazy loads and disables Instrumentation Telemetry. Users must explicitly set "DD_INSTRUMENTATION_TELEMETRY_ENABLED=false".
tracer: Add support for remotely setting the trace sample rate from the Datadog UI. This functionality is enabled by default when using ddtrace-run and library injection. To enable it when using the library manually, use ddtrace.config.enable_remote_config().
multiprocessing.queue in Lambda, because it is not supported in LambdaTypeError raised by serializing producers and deserializing consumers when the message.key tag is set on spans.ddtrace-run or ddtrace.patch_all() with DD_TRACE_ENABLED=False would break with get, gets, and get_multi operations on pylibmc Clients.context._meta dict caused <span class="title-ref">RuntimeError: dictionary changed size during iteration</span>.AttributeError raised by traced StreamingHttpResponse..format string method.requests.requests spans to include the method and path of the request.Context generated from extracted headers could lack a span_id or trace_id, leading SpanLink encoding errors.DD_TRACE_API_VERSION is set to v0.5 and a BufferFull Exception is raised by the TraceWriter. This fix ensures span fields are not overwritten and reduces the frequency of 4XX errors in the trace agent.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Vulnerability Management for Code-level (IAST): Generates cookies vulnerabilities report if IAST is enabled. Before this fix, Cookies vulnerabilities…
pathway.hash tag to spans when DSM is enabled. This allows traces from the instrumented service to show up in the DSM traces tab.tracecontext, the tracer will propagate the tracestate values from other vendors so long as the traceparent trace-id matches the first found trace context, regardless of propagator configuration order. To disable this behavior DD_TRACE_PROPAGATION_EXTRACT_FIRST=true can be set.trace_ids do not match the valid context's, then add a span link to the root span to represent the broken propagation.sys.exit(0) as successful non-error spans.DD_TRACE_SPAN_TRACEBACK_MAX_SIZE environment variable, allowing the maximum size of tracebacks included on spans to be configured.ValueError was raised when using different path drives on Windowssetuptools>=69 due to a change in the license field.TypeError raised when ddtrace log processor is configured with a tupledecode in file.read(n).decode()), resulting in unexpected multiple calls to the expression (file.read(n) in the example).get_info_frame.confluent_kafka's produce method with key=None would cause an exception to be raised.DD_TRACE_LOG_STREAM_HANDLER which defaults to true.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Vulnerability Management for Code-level (IAST): This fix addresses AST patching issues where custom functions or methods could be replaced by aspects…
wrapt and psutil packages are vendored to help users avoid building these packages if wheels were not available for a given platform. This reverses a change released in v2.0.0.unittestpytest test spansunittest test spanslogbook-docs <ddtrace.contrib.logbook> for more details.loguru-docs <ddtrace.contrib.loguru> for more details.structlog-docs <ddtrace.contrib.structlog> for more details.Transfer-Encoding: chunked header is sent--ddtrace-include-class-name as an optional flag (defaulting to false) to prepend the class name to the test name.ERROR status in the UI if the module was not yet imported.DD_TRACE_API is set to v0.5unittest data not being initialized properlyDD_TRACE_DEBUG was set.confluent_kafka's SerializingProducer and DeserializingConsumer classes were incorrectly patched, causing crashes when these classes are in use with Datadog patching.DD_REDIS_RESOURCE_ONLY_COMMAND=false.DD_TRACE_X_DATADOG_TAGS_MAX_LENGTH had a max limit setting of 512 characters. This change removes that limit but keeps the default at 512.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.