Skip to content

Releases: DataDog/dd-trace-py

1.3.0rc2

19 Jul 17:21
aa0abd9

Choose a tag to compare

1.3.0rc2 Pre-release
Pre-release

New Features

  • Enable telemetry collection when using ddtrace-run.

Bug Fixes

  • Fixed support for pytest-bdd 6.

1.2.3

21 Jul 15:24
156b454

Choose a tag to compare

Bug Fixes

  • mypy: Avoid parsing redis asyncio files when type checking Python 2
  • 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.

1.3.0rc1

07 Jul 21:12
07a3e97

Choose a tag to compare

1.3.0rc1 Pre-release
Pre-release

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.

Other Notes

  • perf: don't encode default parent_id value.
  • profiling: add support for protobuf >=4.0.

1.2.2

01 Jul 14:05
d7fe83b

Choose a tag to compare

Bug Fixes

  • aiomysql: fix AttributeError: __aenter__ when using cursors as context managers.

1.2.1

23 Jun 16:49
d10539f

Choose a tag to compare

Bug Fixes

  • starlette: Add back removed aggregate_resources feature.
  • fastapi: Add back removed aggregate_resources feature.
  • asgi, starlette, fastapi: Exclude background tasks duration from web request spans.
  • starlette: Add back removed ddtrace.contrib.starlette.get_resource and ddtrace.contrib.starlette.span_modifier.
  • fastapi: Add back removed ddtrace.contrib.fastapi.span_modifier.

1.2.1rc1

21 Jun 20:59
936a819

Choose a tag to compare

1.2.1rc1 Pre-release
Pre-release

Bug Fixes

  • asgi, starlette, fastapi: Exclude background tasks duration from web request spans.

1.2.0

21 Jun 15:11
d3aff8c

Choose a tag to compare

New Features

  • Add tracing support for aiomysql>=0.1.0.
  • Add support for grpc.aio.
  • botocore: allow defining error status codes for specific API operations.
    See our botocore document for more information on how to enable this feature.
  • ciapp: detect code owners of PyTest tests
  • The memory profile collector can now entirely disabled with the DD_PROFILING_MEMORY_ENABLED environment variable.
  • psycopg2: add option to enable tracing psycopg2.connect method.
    See our psycopg2 documentation for more information.
  • Add asyncio support of redis ≥ 4.2.0

Upgrade Notes

  • The profiler asyncio_loop_policy attribute has been renamed to asyncio_loop_policy_class to accept a user-defined class. This guarantees the same asyncio loop policy class can be used process children.

Bug Fixes

  • Fixes deprecation warning for asyncio.coroutine decorator.
  • internal: normalize header names in ASM
  • profiling: implement __aenter__ and __aexit__ methods on asyncio.Lock wrapper.
  • tracing: fix issue with ddtrace-run having the wrong priority order of tracer host/port/url env variable configuration.
  • django,redis: fix unicode decode error when using unicode cache key on Python 2.7
  • fastapi/starlette: when using sub-apps, formerly a call to /sub-app/hello/{name} would give a resource name of /sub-app. Now the full path /sub-app/hello/{name} is used for the resource name.
  • sanic: Don't send non-500s error traces.
  • pin protobuf to version >=3,<4 due to incompatibility with version 4.21.
  • Fixes a performance issue with the profiler when used in an asyncio application.
  • The profiler now copy all user-provided attributes on fork.
  • pytest: Add note for disabling ddtrace plugin as workaround for side-effects
  • Set required header to indicate top level span computation is done in the client to the Datadog agent. This fixes an issue where spans were erroneously being marked as top level when partial flushing or in certain asynchronous applications.
    The impact of this bug is the unintended computation of stats for non-top level spans.

Other Notes

  • The default number of events kept by the profiler has been reduced to decreased CPU and memory overhead.
  • profiling: add support for protobuf >=4.0.

1.2.0rc3

16 Jun 12:06
d3aff8c

Choose a tag to compare

1.2.0rc3 Pre-release
Pre-release

Other

  • Internal changes

1.2.0rc2

14 Jun 19:50
a8d1c46

Choose a tag to compare

1.2.0rc2 Pre-release
Pre-release

Other Notes

  • profiling: add support for protobuf >=4.0.

1.2.0rc1

01 Jun 17:00
f4fe6e9

Choose a tag to compare

1.2.0rc1 Pre-release
Pre-release

New Features

  • Add tracing support for aiomysql>=0.1.0.

  • Add support for grpc.aio.

  • botocore: allow defining error status codes for specific API operations.

    See our botocore document for more information on how to enable this feature.

  • ciapp: detect code owners of PyTest tests

  • The memory profile collector can now entirely disabled with the DD_PROFILING_MEMORY_ENABLED environment variable.

  • psycopg2: add option to enable tracing psycopg2.connect method.

    See our psycopg2 documentation for more information.

  • Add asyncio support of redis ≥ 4.2.0

Upgrade Notes

  • The profiler asyncio_loop_policy attribute has been renamed to asyncio_loop_policy_class to accept a user-defined class. This guarantees the same asyncio loop policy class can be used process children.

Bug Fixes

  • Fixes deprecation warning for asyncio.coroutine decorator.

  • internal: normalize header names in ASM

  • profiling: implement __aenter__ and __aexit__ methods on asyncio.Lock wrapper.

  • tracing: fix issue with ddtrace-run having the wrong priority order of tracer host/port/url env variable configuration.

  • django,redis: fix unicode decode error when using unicode cache key on Python 2.7

  • fastapi/starlette: when using sub-apps, formerly a call to /sub-app/hello/{name} would give a resource name of /sub-app. Now the full path /sub-app/hello/{name} is used for the resource name.

  • sanic: Don't send non-500s error traces.

  • pin protobuf to version >=3,<4 due to incompatibility with version 4.21.

  • Fixes a performance issue with the profiler when used in an asyncio application.

  • The profiler now copy all user-provided attributes on fork.

  • pytest: Add note for disabling ddtrace plugin as workaround for side-effects

  • Set required header to indicate top level span computation is done in the client to the Datadog agent. This fixes an issue where spans were erroneously being marked as top level when partial flushing or in certain asynchronous applications.

    The impact of this bug is the unintended computation of stats for non-top level spans.

Other Notes

  • The default number of events kept by the profiler has been reduced to decreased CPU and memory overhead.