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.
Fix urllib3 patching not properly activating the integration.
urllib3 patching not properly activating the integration.The deprecated dogstatsd_host and dogstatsd_port arguments to tracer.configure() have been removed.
pyddprofile wrapper has been removed. Use ddtrace-run with DD_PROFILING_ENABLED=1 set instead.ddtrace-run due to a limitation of how tracer initialization occurs. See the updated instructions for enabling tracing in the library uWSGI documentation<uwsgi>.ddtrace.patch_all via the --ddtrace-patch-all option.Span now accepts a on_finish argument used for specifying functions to call when a span finishes.Records parameter to Firehose endpoint calls is being excluded from the tags to avoid generating traces with a large payload.DefTemplate or any Template that does not have a filename property.ddtrace-run for automatic instrumentation and configuration or manual instrumentation and configuration without the necessary uWSGI options. The problem is caused by how the tracer can end up starting threads in the master process before uWSGI forks to initialize the workers processes. To avoid this, we have provided updated instructions for enabling tracing in the library uWSGI documentation<uwsgi>.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Deprecate the DD_LOGGING_RATE_LIMIT variable in favor of the standard DD_TRACE_LOGGING_RATE for configuring the logging rate limit.
Tracer class properties DEFAULT_HOSTNAME, DEFAULT_PORT, DEFAULT_DOGSTATSD_PORT, DEFAULT_DOGSTATSD_URL, DEFAULT_AGENT_URL have been removed.The profiler will only load tags from the DD_TAGS environment variable once at start.
HTTP Custom Error Codes <http-custom-error> instead of ddtrace.config.flask['extra_error_codes'].The deprecated compatibility module ddtrace.profile has been removed.
Build and deploy Python 3.9 wheels for releases
botocore: added <span class="title-ref">distributed_tracing</span> configuration setting which is enabled by default.
The ddtrace-run command now supports the following arguments: -h, --help -d, --debug enable debug mode (disabled by default) -i, --info print library info useful for debugging -p, --profiling enable profiling (disabled by default) -v, --version show program's version number and exit
It now also has friendlier error messages when used incorrectly.
Add functionality to call gevent.monkey.patch_all() with ddtrace-run by setting the environment variable DD_GEVENT_PATCH_ALL=true. This ensures that gevent patching is done as early as possible in the application.
botocore: inject distributed tracing data to <span class="title-ref">ClientContext</span> to trace lambda invocations.
botocore: inject tracing data to <span class="title-ref">MessageAttributes</span>.
The profiler now tracks the running gevent Greenlet and store it as part of the CPU and wall time profiling information.
The profiler is now able to upload profiles to the Datadog Agent by using a Unix Domain Socket.
It is now possible to pass a <span class="title-ref">url</span> parameter to the <span class="title-ref">Profiler</span> to specify the Datadog agent location.
The new memory profiler for Python is now enabled by default. This improves the profiler memory consumption and performance impact. It can still be disabled by setting <span class="title-ref">DD_PROFILING_MEMALLOC=0</span> as an environment variable.
The profiler now uses the tracer configuration is no configuration is provided.
pytest integration. This enables the pytest runner to trace test executions.
Store request headers in Flask integration.
Add support for Python 3.9
Nothing published for this version
fix(django): avoid mixing str and non-str args for uri helper
__all__feat(django): add database_service_name config option
Fix for an issue introduced by patching classes in the MRO of a Django View class (#1625).
reintroduce wrapt for patching Django view methods.
feat(profiling): reduce the default amount of sampling for memory/lock to 2%
https://github.com/DataDog/dd-trace-py/compare/v0.40.0...v0.41.0
Fix for an issue introduced by patching classes in the MRO of a Django View class (#1625).
reintroduce wrapt for patching Django view methods.
This release includes performance improvements in the core library, updates profiling, and configuration changes to several integrations. This release
This release includes performance improvements in the core library, updates profiling, and configuration changes to several integrations. This release also adds support for installing on Windows.
Fix for an issue introduced by patching classes in the MRO of a Django View class (#1625).
reintroduce wrapt for patching Django view methods.
core: deprecate encoder decode()
decode() method on our encoders located in ddtrace.encoders is scheduled to be removed in 0.40.ddtrace.config API like so: config.django.http.trace_headers(["my-header-i-want-to-trace"]). Thanks to @JoseKilo for contributing this feature!None.None RpcMethodHandlersDD_ENV and DD_VERSION environment variable configuration.Fix for an issue introduced by patching classes in the MRO of a Django View class (#1625).
reintroduce wrapt for patching Django view methods.
This patch release disables span linkage by default in the profiler which was causing some threading lock up issues in gevent. See #1488 and #1485 for
This patch release disables span linkage by default in the profiler which was causing some threading lock up issues in gevent. See #1488 and #1485 for the details.
This patch release includes 2 fixes:
This patch release includes 2 fixes:
Fix span/trace id generation collisions when forking by reverting the changes we made to speed up id generation. (#1470)
Force rebuilding of Cython files in setup.py. This will ensure that we build for the right Python version. (#1468)
# Upgrading to 0.38.0
Fix for an issue introduced by patching classes in the MRO of a Django View class (#1625).
reintroduce wrapt for patching Django view methods.
This patch release includes fixes for install problems with Alpine Linux as well as for a bug with tag encoding in the profiler.
This patch release includes fixes for install problems with Alpine Linux as well as for a bug with tag encoding in the profiler.
This release introduces mainly bug fixes as well as some new configuration options for the profiling library.
This release introduces mainly bug fixes as well as some new configuration options for the profiling library.
Fix for an issue introduced by patching classes in the MRO of a Django View class (#1625).
reintroduce wrapt for patching Django view methods.
Nothing published for this version
This release includes support for setting global application tags which will help Datadog better correlate your Python application traces and logs wit
This release includes support for setting global application tags which will help Datadog better correlate your Python application traces and logs with other services in your infrastructure.
By providing the following settings, ddtrace will tag your application's traces and logs appropriately:
DD_ENV environment variable or ddtrace.config.env: the environment in which your application is running. eg: prod, staging.DD_VERSION environment variable or ddtrace.config.version: the version of your application. eg: 1.2.3, 6c44da20, 2020.02.13DD_SERVICE environment variable or ddtrace.config.service: the service which your application represents.In you are using our logging integration manually, please update your formatter to also include the dd.env, dd.service and dd.version attributes as well. See our docs on Logs Injection for more details.
Fix for an issue introduced by patching classes in the MRO of a Django View class (#1625).
reintroduce wrapt for patching Django view methods.
New hook registry for patching on import
This release adds:
botocore support for RequestIdaiobotocore>=0.11.0rediscluster==2.0.0Fix for an issue introduced by patching classes in the MRO of a Django View class (#1625).
Nothing published for this version
This release adds a new integration for Django. The goal of this effort was to make the Django integration more consistent with our other integrations
This release adds a new integration for Django. The goal of this effort was to make the Django integration more consistent with our other integrations, simplifying configuration and patching. See the Django documentation for details on how to get started with the integration. For existing Django applications, be sure to consult the migration section of the documentation.
While we are now vendoring psutil, msgpack will no longer be vendored and instead specified as a requirement.
Finally, improvements have been made to the testing and continuous integration.
This release introduces setting numeric tags as metrics, addresses a regression in Python 3 performance, and introduces a dual license.
This release introduces setting numeric tags as metrics, addresses a regression in Python 3 performance, and introduces a dual license.
Nothing published for this version
Nothing published for this version
This release adds support for dogpile.cache, fixes an issue with the bottle integration, addresses issues with CI, and makes several improvements to t
This release adds support for dogpile.cache, fixes an issue with the bottle integration, addresses issues with CI, and makes several improvements to the core library.
This release addresses issues with the gRPC, Celery, Elasticsearch integrations. In addition, there are internal improvements to how timing for spans
This release addresses issues with the gRPC, Celery, Elasticsearch integrations. In addition, there are internal improvements to how timing for spans is being handled.
Nothing published for this version
Nothing published for this version
In addition to resolving several integration related issues, this release improves critical core components for tracing and runtime metrics.
In addition to resolving several integration related issues, this release improves critical core components for tracing and runtime metrics.
This release introduces a new contextvars-based context manager in Python 3.7 and adds support for Tornado 5 and 6 with Python 3.7. In addition, the r
This release introduces a new contextvars-based context manager in Python 3.7 and adds support for Tornado 5 and 6 with Python 3.7. In addition, the release includes several updates for our Django integration.
This release introduces container tagging and adds support for gRPC server.
This release introduces container tagging and adds support for gRPC server.
This patch release includes performance fix which is highly recommended for anyone currently using 0.27.0.
This patch release includes performance fix which is highly recommended for anyone currently using 0.27.0.
This release introduces improvements to the trace writer. In addition, the release fixes some issues with integrations.
This release introduces improvements to the trace writer. In addition, the release fixes some issues with integrations.
This release introduces several core improvements and continues addressing pain points in our tooling and testing.
This release introduces several core improvements and continues addressing pain points in our tooling and testing.
This release includes several core improvements and addresses pain points in our testing/CI. The release also adds a new integration for Algolia Searc
This release includes several core improvements and addresses pain points in our testing/CI. The release also adds a new integration for Algolia Search.
This release introduces a new feature (disabled by default), supports new versions of integrations and improves our testing and tooling.
This release introduces a new feature (disabled by default), supports new versions of integrations and improves our testing and tooling.
With this release we are introducing a new configuration system across integrations to generate APM events for Trace Search & Analytics. The other cor
With this release we are introducing a new configuration system across integrations to generate APM events for Trace Search & Analytics. The other core changes are the beginnings of a new approach to address issues with tracer loads and improve debugging.
This release contains a few improvements for not marking a Celery task as an error if it is an expected and allowed exception, for propagating synthet
This release contains a few improvements for not marking a Celery task as an error if it is an expected and allowed exception, for propagating synthetics origin header, and to vendor our six and wrapt dependencies.
This is a bug fix release that requires no changes to your code.
This is a bug fix release that requires no changes to your code.
Included in this release is a fix for some database cursors where we would force Cursor.execute and Cursor.executemany to return a cursor instead of the originally intended output. This caused an issue specifically with MySQL libraries which tried to return the row count and we were returning a cursor instead.
With this release we are moving distributed tracing settings to be enabled by default. This change means that you no longer need to explicitly enable
With this release we are moving distributed tracing settings to be enabled by default. This change means that you no longer need to explicitly enable distributed tracing for any integration.
This is a bug fix release, no code changes are required.
This is a bug fix release, no code changes are required.
In this release we have fixed a bug that caused some configuration values to not get updated when set.
This is a bug fix release that requires no changes.
This is a bug fix release that requires no changes.
This release includes a fix for context propagation with futures. Under the right conditions we could incorrectly share a trace context between multiple futures threads which result in multiple traces being joined together in one.
No changes are needed to upgrade to 0.20.2.
No changes are needed to upgrade to 0.20.2.
This big fix release includes changes to ensure we properly read the HTTP response body from the trace agent before we close the HTTP connection.
No changes are needed to upgrade
No changes are needed to upgrade
One column per quarter.