Skip to content

Releases: DataDog/dd-trace-py

1.4.0

22 Aug 20:34
522c354

Choose a tag to compare

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=True argument to the profiler or by setting the environment variable DD_PROFILING_ENABLE_CODE_PROVENANCE to true.
  • 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_BYTES as 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.origin tag for Python 2.

Other Notes

  • 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.

1.4.0rc3

18 Aug 14:25
eb11df1

Choose a tag to compare

1.4.0rc3 Pre-release
Pre-release

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

17 Aug 19:34
2fea9f4

Choose a tag to compare

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

16 Aug 13:50
1949d45

Choose a tag to compare

Bug Fixes

  • ASM: fix Python 2 error reading WAF rules.

0.61.2

16 Aug 17:30
b10c8df

Choose a tag to compare

Bug Fixes

  • ASM: fix Python 2 error reading WAF rules.
  • flask: add support for flask>=2.2.0
  • flask_caching: fix redis tagging after the v2.0 release.

1.4.0rc2

08 Aug 16:44
41b0e0b

Choose a tag to compare

1.4.0rc2 Pre-release
Pre-release

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.origin tag for Python 2

1.3.2

04 Aug 12:43
39b2f56

Choose a tag to compare

Bug Fixes

  • tracing: fix handling of unicode _dd.origin tag for Python 2
  • Fixed the environment variable used for log file size bytes to be DD_TRACE_LOG_FILE_SIZE_BYTES as documented.

1.4.0rc1

03 Aug 18:51
d08ba20

Choose a tag to compare

1.4.0rc1 Pre-release
Pre-release

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=True argument to the profiler or by setting the environment variable DD_PROFILING_ENABLE_CODE_PROVENANCE to true.

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_BYTES as 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 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.

1.3.1

02 Aug 21:25
f6f1a11

Choose a tag to compare

Bug Fixes

  • flask: add support for flask>=2.2.0.
  • jinja2: fix handling of template names which are not strings.

1.3.0

27 Jul 18:54
843092d

Choose a tag to compare

New Features

  • internal: Add support for Datadog trace tag propagation.
  • django: added DD_DJANGO_INSTRUMENT_TEMPLATES=false to allow tracing of Django template rendering.
  • internal: Add sampling mechanism trace tag.
  • Add environment variables to write ddtrace logs to a file with DD_TRACE_LOG_FILE, DD_TRACE_LOG_FILE_LEVEL, and DD_TRACE_FILE_SIZE_BYTES.
  • Adds pytest-bdd integration to show more details in CI Visibility product.

Bug Fixes

  • starlette: Add back removed aggregate_resources feature.
  • fastapi: Add back removed aggregate_resources feature.
  • 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.url tag 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_resource and ddtrace.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.