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
Nothing published for this version
CI Visibility: This fix resolves the compatibility for Gitlab 16.0 deprecated urls
pyramid.request spans.celery>4.0.DD_DJANGO_USE_HANDLER_RESOURCE_FORMAT=True. This issue impacts django>=4.0.AttributeError exception to be raised on profiler start-up.ValueError raised when dsn connection strings are parsed. This was fixed in ddtrace v1.9.0 and was re-introduced in v1.13.0.DD_TRACE_DEBUG=true. This issue impacts gunicorn applications using gevent and python<=3.6.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
profiling: Code provenance is a feature that enhances the "My code" experience in the Datadog UI by allowing the tracer to report packaging metadata a
profiling: Code provenance is a feature that enhances the "My code" experience in the Datadog UI by allowing the tracer to report packaging metadata about installed source files. This information is used to distinguish between user and third-party code.
aws: Adds span tags for consistency with tags collected by Datadog for AWS metrics and logs.
botocore: Adds the ability to control which botocore submodules will be patched.
ASM: Send WAF metrics over telemetry
pytest: This introduces test suite and module level visibility for the pytest integration. Pytest test traces will now include test session, test module, test suite, and test spans, which correlate to pytest session, pytest package, pytest module, and pytest test functions respectively.
redis: Introducing redis command span tag max length configuration for aioredis<aioredis>, aredis<aredis>, redis<redis>, rediscluster<rediscluster>, and yaaredis<yaaredis> integrations.
profiling: Code provenance is enabled by default.
OpenAI: Add integration with support for metrics, logs and traces from OpenAI requests. See the docs for more information.
dependencies: Resolves an issue where ddtrace installs an incompatible version of cattrs when Python 3.6 is used.
tracing: Resolves an issue where DD_TRACE_<INTEGRATION>_ENABLED=False could not be used to disable the following integrations when ddtrace-run was used: flask, django, bottle, falcon, and pyramid.
asgi: Ensures error.message and error.stack tags are set when an exception is raised in a route.
appsec: Fixes an encoding error when we are unable to cleanup the AppSec request context associated with a span.
ASM: Fixes encoding error when using AppSec and a trace is partial flushed.
CI Visibility: This fix resolves an issue where the tracer was doing extra requests if the DD_CIVISIBILITY_ITR_ENABLED env var was not set.
CI Visibility: This fix resolves an issue where the API call would fail because it is reporting a null service name
bootstrap: fixed an issue with the behavior of ddtrace.auto that could have caused incompatibilities with frameworks such as gevent when used as a programmatic alternative to the ddtrace-run command.
django: Fixed a bug that prevented a Django application from starting with celery and gevent workers if DJANGO_SETTINGS_MODULE was not explicitly set.
tracing: Fixes a cryptic encoding exception message when a span tag is not a string.
ASM: fix extract_body for Django such that users of Django Rest Framework can still use custom parsers.
flask: Remove patching for Flask hooks app.before_first_request and bp.before_app_first_request if Flask version >= 2.3.0.
gevent: Fix a bug that caused traceback objects to fail to pickle when using gevent.
OpenAI: Resolved an issue where OpenAI API keys set in individual requests rather than as an environment variable caused an error in the integration.
profiler: Fixed a bug that caused segmentation faults in applications that use protobuf as a runtime dependency.
redis: Resolves an issue where the aioredis/aredis/yaaredis integrations cross-imported a helper method from the redis integration, which triggered redis patching before the redis integration was fully loaded.
wsgi: Resolves an issue where accessing the __len__ attribute on traced wsgi middlewares raised a TypeError
django: Adds catch to guard against a ValueError, AttributeError, or NotImplementedError from being thrown when evaluating a django cache result for db.row_count tag.
lib-injection: Ensure local package is installed. Previously the package could still be pulled from the internet causing application slowdowns.
kafka: Fixes TypeError raised when arbitrary keyword arguments are passed to confluent_kafka.Consumer
profiler: Fix support for latest versions of protobuf.
psycopg: Resolves an issue where an AttributeError is raised when psycopg.AsyncConnection is traced.
sanic: Resolves sanic_routing.exceptions.InvalidUsage error raised when gevent is installed or DD_UNLOAD_MODULES_FROM_SITECUSTOMIZE is set to True.
elasticsearch: This fix resolves an issue where the tracer would throw an error when patching unsupported versions of elasticsearch (> 8.0). Patching is now skipped if an unsupported version is detected.
error.stack tags from 20 to 30Nothing 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
psycopg: This release adds support for the new psycopg3 package. This new integration has all the same tracing functionality as the previous psycopg2-
algoliasearch: This fix resolves an issue where non-text search query arguments caused Type Errors when being added as tags.
ASM: fix calling <span class="title-ref">set_user</span> without a created span raising a <span class="title-ref">ValueError</span>.
django: Adds fix for bug where Django cache return object throws an error if it does not implement __bool__().
kafka: Previously instantiating a subclass of kafka's Producer/Consumer classes would result in attribute errors due to patching the Producer/Consumer classes with an ObjectProxy. This fix resolves this issue by making the traced classes directly inherit from kafka's base Producer/Consumer classes.
profiling: Fixed a regression in the memory collector that caused it to fail to cleanly re-initialize after a fork, causing error messages to be logged.
logging: Ensure that the logging module can report thread information, such as thread names, correctly when a framework like gevent is used that requires modules cleanup.
ASM: This fix resolves an issue where path parameters for the Flask framework were handled at response time instead of at request time for suspicious request blocking. This close a known issue opened in 1.10.0.
lib-injection: Switch installation to install from included wheels. Prior, the wheels were merged together which caused conflicts between versions of dependencies based on Python version.
tracer: Handle exceptions besides ImportError when integrations are loaded.
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
tracing: Adds support for 128 bit trace ids for b3 and w3c distributing tracing headers.
DD_CIVISIBILITY_AGENTLESS_ENABLED environment variable to configure the CIVisibility service to use an agent-less test reporting CIVisibilityWriter. Note that the CIVisibility service will use regular agent reporting by default.DD_GIT_REPOSITORY_URL, DD_GIT_COMMIT_SHA, or from the python package specified in the DD_MAIN_PACKAGE. This feature can be disabled by setting DD_TRACE_GIT_METADATA_ENABLED=False.docs <ddtrace.opentelemetry> for more details.DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED=Falseddtrace.patch_all(), or ddtrace.patch(aws_lambda=True), is set on user handler.pip install. This solves issues like containers blocking network requests, installation overhead during application startup, permissions issues with the install.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
ASM: Several deprecated ASM constants that were added to the public API will be removed. This should not affect existing code as they were meant for p…
DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED=True. Support for B3 and W3C distributed tracing headers will be added in a future change.celery.beat scheduling service to the celery integration.confluent-kafka>=1.7. See the confluent-kafka<https://ddtrace.readthedocs.io/en/stable/integrations.html#kafka> documentation for more information.env span tag had been set caused sample rate data from the Datadog Agent to be ignored.track_custom_event() also set appsec.events.<custom_event>.track which was missing.http.route was only set if use_handler_resource_format and use_legacy_resource_format were set to False.RecursionError which is raised when aws lambda signal handlers are wrapped infinitely. This caused lambdas to crash on startup.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
dbapi: ddtrace.ext.mongo.ROWS is deprecated. Use ddtrace.ext.db.ROWCOUNT instead.
Application Security Management (ASM) has added Django support for blocking malicious users using one click within Datadog.
<div class="note">
<div class="title">
Note
</div>
One click blocking for ASM is currently in beta.
</div>
ddtrace.ext.mongo.ROWS is deprecated. Use ddtrace.ext.db.ROWCOUNT instead.starlette.request spans.fastapi.request spans.server.request.path_params. The request will be correctly blocked but the client application will be receiving and processing the suspicious request. Possible workaround: use server.request.uri.raw instead, if you want the request to be blocked before entering the flask application.dbapi: The dbapi integration no longer assumes that a cursor object will have a rowcount as not all database drivers implement rowcount.
dbm: Support sql queries with the type byte.
elasticsearch: Omit large elasticsearch.body tag values that are
greater than 25000 characters to prevent traces from being too large to send.
aws_lambda: This fix resolves an issue where existing signals were wrapped multiple times.
profiling: Handles a race condition on process shutdown that would cause an error about a module not being started to occasionally appear in the logs.
Fix for KeyError exceptions when when <span class="title-ref">ASM_FEATURES</span> (1-click activation) disabled all ASM products. This could cause 1-click activation to work incorrectly in some cases.
ASM: Solve some corner cases where a Flask blocking request would fail because headers would be already sent.
ASM: Solve the content-type not always being correct in blocking responses.
ASM: Ensure the blocking responses have the following tags: <span class="title-ref">http.url</span>, <span class="title-ref">http.query_string</span>, <span class="title-ref">http.useragent</span>, <span class="title-ref">http.method</span>, <span class="title-ref">http.response.headers.content-type</span> and <span class="title-ref">http.response.headers.content-length</span>.
ASM: fix memory leaks and memory corruption in the interface between ASM and the WAF library
psycopg2: Fixes a bug with DSN parsing 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
Nothing published for this version
gevent: DD_GEVENT_PATCH_ALL is deprecated and will be removed in the next major version. Gevent compatibility is now automatic and does not require ex…
DD_GEVENT_PATCH_ALL is deprecated and will be removed in the next major version. Gevent compatibility is now automatic and does not require extra configuration when running with ddtrace-run. If not using ddtrace-run, please import ddtrace.auto before calling gevent.monkey.patch_all().grpc: Deprecates ddtrace.contrib.grpc.constants.GRPC_PORT_KEY. Use ddtrace.ext.net.TARGET_PORT instead.
Application Security Management (ASM) has added Django support for blocking malicious IPs using one click within Datadog.
<div class="note">
<div class="title">
Note
</div>
One click blocking for ASM is currently in beta.
</div>
Application Security Management (ASM) has added Flask support for blocking malicious IPs using one click within Datadog.
<div class="note">
<div class="title">
Note
</div>
One click blocking for ASM is currently in beta.
</div>
ddtrace.contrib.grpc.constants.GRPC_PORT_KEY. Use ddtrace.ext.net.TARGET_PORT instead.ddtrace.ext.sql.ROWS is deprecated. Use ddtrace.ext.db.ROWCOUNT instead.ddtrace.ext.cassandra.ROW_COUNT is deprecated. Use ddtrace.ext.db.ROWCOUNT instead.Enable traces to be sent before an impending timeout for datadog_lambda>=4.66.0. Use DD_APM_FLUSH_DEADLINE to override the default flush deadline. The default is the AWS Lambda function configured timeout limit.
debugger: Add dynamic log probes to that generate a log message and optionally capture local variables, return value and exceptions
tracing: Add support for enabling collecting of HTTP request client IP addresses as the http.client_ip span tag. You can set the DD_TRACE_CLIENT_IP_ENABLED environment variable to true to enable. This feature is disabled by default.
ASM: add support for one click blocking of IPs with the Django framework using Remote Configuration Management.
ASM: add support for one click blocking of IPs with the Flask framework using Remote Configuration Management.
ASM: also fetch loopback IPs if client IP fetching is enabled (either via ASM or DD_TRACE_CLIENT_IP_ENABLED).
ASM: Enable ability to remotely activate and configure ASM features. To enable, check the Python Security page in your account. Note that this is a beta feature.
profiling: Collects endpoint invocation counts.
dynamic instrumentation: Python 3.11 is now supported.
graphene: Adds support for Python 3.11.
graphql: Adds support for Python 3.11.
httpx: Add support for httpx<0.14.0,>=0.9.0.
tracer/span: Add Span.finish_with_ancestors method to enable the abrupt
finishing of a trace in cases where the trace or application must be immediately terminated.
DD_REMOTE_CONFIGURATION_ENABLED=false. Note, this will disable one click activation for ASM.fastapi: Previously, custom fastapi middlewares configured after application startup were not traced. This fix ensures that all fastapi middlewares are captured in the <span class="title-ref">fastapi.request</span> span.
tracing: Pads trace_id and span_ids in b3 headers to have a minimum length of 16.
Fix full stacktrace being sent to the log on remote config connection errors.
httpx: Only patch httpx.AsyncClient for httpx>=0.11.0.
tracing: This fix resolves an issue with the encoding of traces when using the v0.5 API version with the Python optimization option flag -O or the PYTHONOPTIMIZE environment variable.
pylons: This fix resolves an issue where str.decode could cause critical unicode decode errors when ASM is enabled. ASM is disabled by default.
gevent: This fix resolves incompatibility under 3.8>=Python<=3.10 between ddtrace-run and applications that depend on gevent, for example gunicorn servers. It accomplishes this by keeping copies that have not been monkey patched by gevent of most modules used by ddtrace. This "module cloning" logic can be controlled by the environment variable DD_UNLOAD_MODULES_FROM_SITECUSTOMIZE. Valid values for this variable are "1", "0", and "auto". "1" tells ddtrace to run its module cloning logic unconditionally, "0" tells it never to run that logic, and "auto" tells it to run module cloning logic only if gevent is accessible from the application's runtime. The default value is "0".
lib-injection: Use package versions published to PyPI to install the library. Formerly the published image was installing the package from source using the tagged commit SHA which resulted in slow and potentially failing installs.
profiler: Handles potential AttributeErrors which would arise while collecting frames during stack unwinding in Python 3.11.
remote config: ensure proper validation of responses from the agent.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.