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
DD_REMOTECONFIG_POLL_SECONDS environment variable is deprecated and will be removed in v2.0. Please use DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS instead…
v2.4 backend API for profile uploads, using a new request format.DD_REMOTECONFIG_POLL_SECONDS environment variable is deprecated and will be removed in v2.0. Please use DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS instead.CI Visibility: Add support for CI provider buddy.works
The component tag has been added for all auto-instrumented spans. The value of the component tag is equal to the name of the integration that produced the span.
tracing: Adds support for IPv6 agent hostnames for <span class="title-ref">DD_AGENT_HOST</span>.
elasticsearch: Update elasticsearch integration to add support for opensearch-py. See the elasticsearch documentation for more information.
ASM: one click activation enabled by default using Remote Configuration Management (RCM). Set DD_REMOTE_CONFIGURATION_ENABLED=false to disable this feature.
ASM: New Application Security Events Tracking API, starting with the functions track_user_login_success_event and
track_user_login_failure_event for tracking user logins (it will also internally call set_user) and track_custom_event for any custom events. You can find these functions in the ddtrace.appsec.trace_utils module. Calling these functions will create new tags under the appsec.events namespace (appsec.events.user.login for logins) allowing you to track these events with Datadog. In the future this will be used to provide protection against account takeover attacks (ATO). Public documentation will be online soon.
celery: Enhances context tags containing dictionaries so that their contents are sent as individual tags (issue #4771).
tornado: Support custom error codes: https://ddtrace.readthedocs.io/en/stable/advanced_usage.html#custom-error-codes.
CI Visibility: Support reliably linking tests to the pipeline that executed them.
DD_PROFILING_ENABLE_CODE_PROVENANCE is set to true.pip install ddtrace runs under pip versions <18.http.url tag.platform.libc_ver() on an unsupported system.@ is not present in network location but other part of the url.Your coding agent can read these notes before it upgrades. Set up the MCP server →
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
propagation: Configuration of propagation style with DD_TRACE_PROPAGATION_STYLE=b3 is deprecated and will be removed in version 2.0.0. Please use the…
Initial library support has been added for Python 3.11.
<div class="note">
<div class="title">
Note
</div>
Continuous Profiler and Dynamic Instrumentation are not yet compatible and must be disabled in order to use the library with Python 3.11. Support for them will be added in a future release. To track the status, see the Support Python 3.11 issue on GitHub.
</div>
DD_TRACE_PROPAGATION_STYLE=tracecontext,datadog. To only support Datadog propagation and retain the existing default behavior, set DD_TRACE_PROPAGATION_STYLE=datadog.DD_TRACE_PROPAGATION_STYLE_EXTRACT are now evaluated in order to specification. To keep the previous fixed evaluation order, set: DD_TRACE_PROPAGATION_STYLE_EXTRACT=datadog,b3,b3 single header.v0.5 for non-Windows systems. The v0.5 trace API version generates smaller payloads, thus increasing the throughput to the Datadog agent especially with larger traces.v0.5 trace API version on Windows machines will raise a RuntimeError due to known compatibility issues. Please see https://github.com/DataDog/dd-trace-py/issues/4829 for more details.DD_TRACE_PROPAGATION_STYLE=b3 is deprecated and will be removed in version 2.0.0. Please use the newly added DD_TRACE_PROPAGATION_STYLE=b3multi instead.DD_AWS_TAG_ALL_PARAMS=1. The deprecated behavior and environment variable will be removed in v2.0.0.DD_DJANGO_INCLUDE_USER_NAME option to toggle whether the integration sets the django.user.name tag.DD_TRACE_PROPAGATION_STYLE to configure both injection and extraction propagation styles. The configured styles can be overridden with environment variables DD_TRACE_PROPAGATION_STYLE_INJECT and DD_TRACE_PROPAGATION_STYLE_EXTRACT.none as a supported propagator for trace context extraction and injection. When none is the only propagator listed, the corresponding trace context operation is disabled. If there are other propagators in the inject or extract list, the none propagator has no effect. For example DD_TRACE_PROPAGATION_STYLE=nonetraceparent and tracestate HTTP headers are enabled by default for all incoming and outgoing HTTP request headers. The Datadog propagation style continue to be enabled by default.flask.application and flask.response will be generated.attrs and contextlib2 version constraints for Python 2.7.DD_AWS_TAG_NO_PARAMS=1. To retain the deprecated behavior and collect all API parameters, set the environment variable DD_AWS_TAG_ALL_PARAMS=1.ddtrace.context.Context serializable which fixes distributed tracing across processes.SynchronousOnlyOperation when failing to retrieve user information.forbiddenfruit as dependency and rollback wrapt changes where forbiddenfruit was called. IAST: Patch builtins only when IAST is enabled.httpx==0.23.1 when the URL.raw property is not available.forbiddenfruit package has conflicts with some libraries such as asynctest. This conflict raises AttributeError exception. See issue #4484.DD_SERVICE_MAPPING mapped service names were not used when updating span metadata with the DD_VERSION set version string.BaseException raised in a WSGI application caused spans to not be submitted.ddtrace would always be installed, regardless of the image version.flask._app_ctx_stack and flask._request_ctx_stack.DD_TRACE_PROPAGATION_STYLE_EXTRACT now respects the configured styles evaluation order. The evaluation order had previously been fixed and so the configured order was ignored.stderr instead of to a logger.ddtrace.constants.PID has been changed from system.pid to process_id. All spans will now use the metric tag of process_id instead.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
Application Security Management (ASM) has added support for preventing attacks by blocking malicious IPs using one click within Datadog.
Application Security Management (ASM) has added support for preventing attacks by blocking malicious IPs using one click within Datadog.
<div class="note">
<div class="title">
Note
</div>
One click activation for ASM is currently in beta.
</div>
Dynamic instrumentation allows instrumenting a running service dynamically to extract runtime information that could be useful for, e.g., debugging purposes, or to add extra metrics without having to make code changes and re-deploy the service. See https://ddtrace.readthedocs.io/en/stable/configuration.html for more details.
>=20 due to incompatibility with [cattrs](https://pypi.org/project/cattrs/) version 22.1.0.Span.set_tag_str() instead of Span.set_tag() when the tag value is a text type as a performance optimizations in manual instrumentation.DD_REMOTE_CONFIGURATION_ENABLED=true to enable this feature.Span.set_tag_str() as an alternative to the overloaded functionality of Span.set_tag() when the value can be coerced to unicode text.telemetry <Instrumentation Telemetry> collection when tracing is enabled.DD_TAGS environment variable value to include support for values with colons (e.g. URLs). Also fixed the parsing of invalid tags that begin with a space (e.g. DD_TAGS=" key:val" will now produce a tag with label key, instead of key, and value val).connection.backup method.backport_ipaddress` toipaddress. Only installipaddress`` for Python < 3.7.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
graphene: add support for graphene>=2. See the graphql documentation for more information.
graphene>=2. See the graphql documentation for more information.http.useragent.DD_REDISCLUSTER_SERVICEsql.query spanapp_key to look up templates._dd.origin tag for Python 2@ signs are present in the urlNothing 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
graphql: add tracing for graphql-core>2. See the graphql documentation for more information.
graphql-core>2. See the graphql documentation for more information.enable_code_provenance=True argument to the profiler or by setting the environment variable DD_PROFILING_ENABLE_CODE_PROVENANCE to true.flask>=2.2.0DD_TRACE_LOG_FILE_SIZE_BYTES as documented.id() of the object, causing the test fingerprint to constantly change across executions.profiler: don't initialize the AsyncioLockCollector unless asyncio is
available. This prevents noisy logs messages from being emitted in Python 2.
docs: Added troubleshooting section for missing error details in the root span of a trace.
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
internal: Add support for Datadog trace tag propagation
DD_DJANGO_INSTRUMENT_TEMPLATES=false to allow tracing of Django template rendering.ddtrace logs to a file with DD_TRACE_LOG_FILE, DD_TRACE_LOG_FILE_LEVEL, and DD_TRACE_FILE_SIZE_BYTESaggregate_resources feature.aggregate_resources feature.AttributeError: __aenter__ when using cursors as context managers.http.url tag using the hostname in the request header before defaulting to the hostname of the asgi server.ddtrace.contrib.starlette.get_resource and ddtrace.contrib.starlette.span_modifier.ddtrace.contrib.fastapi.span_modifier.DD_TRACE_X_DATADOG_TAGS_MAX_LENGTH.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.