Releases: DataDog/dd-trace-py
Releases · DataDog/dd-trace-py
1.4.0
New Features
- graphql: add tracing for
graphql-core>2. See the graphql documentation for more information. - ASM: Detect attacks on Django body.
- ASM: Detect attacks on Flask request cookies.
- ASM: Detect attacks on Django request cookies.
- ASM: Detect attacks on Pylons HTTP query.
- ASM: Detect attacks on Pylons request cookies.
- ASM: detect attacks on Pylons path parameters.
- ASM: Report HTTP method on Pylons framework.
- ASM: Collect raw uri for Pylons framework.
- AppSec: collect response headers.
- ASM: Detect attacks on Flask body.
- ASM: Detect attacks on path parameters.
- The profiler now supports Windows.
- The profiler now supports code provenance reporting. This can be enabled by using the
enable_code_provenance=Trueargument to the profiler or by setting the environment variableDD_PROFILING_ENABLE_CODE_PROVENANCEtotrue. - Adds support for Lambda profiling, which can be enabled by starting the profiler outside of the handler (on cold start).
Bug Fixes
- flask: add support for
flask>=2.2.0. - Fixed the environment variable used for log file size bytes to be
DD_TRACE_LOG_FILE_SIZE_BYTESas documented. - jinja2: fix handling of template names which are not strings.
- Fixed support for pytest-bdd 6.
- Fixes cases where a pytest test parameter object string representation includes the
id()of the object, causing the test fingerprint to constantly change across executions. - wsgi: ignore GeneratorExit Exception in wsgi.response spans.
- wsgi: ensures resource and http tags are always set on wsgi.request spans.
- ASM: fix Python 2 error reading WAF rules.
- tracing: fix nested web frameworks re-extracting and activating HTTP context propagation headers.
- requests: fix split-by-domain service name when multiple
@signs are present in the url. - profiling: fix a possible deadlock due to spans being activated unexpectedly.
- tracing: fix handling of unicode
_dd.origintag for Python 2.
Other Notes
- profiler: don't initialize the
AsyncioLockCollectorunless 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.
1.4.0rc3
Bug Fixes
- ASM: fix Python 2 error reading WAF rules.
- tracing: fix nested web frameworks re-extracting and activating HTTP context propagation headers.
- requests: fix split-by-domain service name when multiple
@signs are present in the url. - profiling: fix a possible deadlock due to spans being activated unexpectedly.
1.3.4
Bug Fixes
- requests: fix split-by-domain service name when multiple
@signs are present in the url - profiling: fix a possible deadlock due to spans being activated unexpectedly.
1.3.3
Bug Fixes
- ASM: fix Python 2 error reading WAF rules.
0.61.2
1.4.0rc2
New Features
- Adds support for Lambda profiling, which can be enabled by starting the profiler outside of the handler (on cold start).
Bug Fixes
- tracing: fix handling of unicode
_dd.origintag for Python 2
1.3.2
Bug Fixes
- tracing: fix handling of unicode
_dd.origintag for Python 2 - Fixed the environment variable used for log file size bytes to be
DD_TRACE_LOG_FILE_SIZE_BYTESas documented.
1.4.0rc1
New Features
- graphql: add tracing for
graphql-core>2. See the graphql documentation for more information. - ASM: Detect attacks on Django body.
- ASM: Detect attacks on Flask request cookies
- ASM: Detect attacks on Django request cookies
- ASM: Detect attacks on Pylons HTTP query.
- ASM: Detect attacks on Pylons request cookies
- ASM: detect attacks on Pylons path parameters.
- ASM: Report HTTP method on Pylons framework
- ASM: Collect raw uri for Pylons framework.
- ASM: collect response headers
- ASM: Detect attacks on Flask body.
- ASM: Detect attacks on path parameters
- The profiler now supports Windows.
- The profiler now supports code provenance reporting. This can be enabled by using the
enable_code_provenance=Trueargument to the profiler or by setting the environment variableDD_PROFILING_ENABLE_CODE_PROVENANCEtotrue.
Bug Fixes
- flask: add support for
flask>=2.2.0 - Fixed the environment variable used for log file size bytes to be
DD_TRACE_LOG_FILE_SIZE_BYTESas documented. - jinja2: fix handling of template names which are not strings.
- Fixed support for pytest-bdd 6.
- Fixes cases where a pytest test parameter object string representation includes the
id()of the object, causing the test fingerprint to constantly change across executions. - wsgi: ignore GeneratorExit Exception in wsgi.response spans
- wsgi: ensures resource and http tags are always set on wsgi.request spans.
Other Notes
- profiler: don't initialize the
AsyncioLockCollectorunless 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.
1.3.1
1.3.0
New Features
- internal: Add support for Datadog trace tag propagation.
- django: added
DD_DJANGO_INSTRUMENT_TEMPLATES=falseto allow tracing of Django template rendering. - internal: Add sampling mechanism trace tag.
- Add environment variables to write
ddtracelogs to a file withDD_TRACE_LOG_FILE,DD_TRACE_LOG_FILE_LEVEL, andDD_TRACE_FILE_SIZE_BYTES. - Adds pytest-bdd integration to show more details in CI Visibility product.
Bug Fixes
- starlette: Add back removed
aggregate_resourcesfeature. - fastapi: Add back removed
aggregate_resourcesfeature. - aiomysql: fix
AttributeError: __aenter__when using cursors as context managers. - asgi, starlette, fastapi: Exclude background tasks duration from web request spans.
- asgi: set the
http.urltag using the hostname in the request header before defaulting to the hostname of the asgi server. - mypy: Avoid parsing redis asyncio files when type checking Python 2.
- starlette: Add back removed
ddtrace.contrib.starlette.get_resourceandddtrace.contrib.starlette.span_modifier. - fastapi: Add back removed
ddtrace.contrib.fastapi.span_modifier. - internal: fix exception raised for invalid values of
DD_TRACE_X_DATADOG_TAGS_MAX_LENGTH. - flask_caching: fix redis tagging after the v2.0 release.
- redis: create default Pin on asyncio client. Not having a Pin was resulting in no traces being produced for the async redis client.
- Fixed support for pytest-bdd 6.
Other Notes
- perf: don't encode default parent_id value.
- profiling: add support for protobuf >=4.0.