Skip to content

Releases: DataDog/dd-trace-py

0.60.2

11 Apr 18:28
147e660

Choose a tag to compare

Bug Fixes

  • tracer.get_log_correlation_context(): use active context in addition to active span. Formerly just the span was used and this would break cross execution log correlation as a context object is used for the propagation.

1.0.0rc3

01 Apr 20:41
ded53fa

Choose a tag to compare

1.0.0rc3 Pre-release
Pre-release

Release Notes

v1.0.0rc3

Upgrade Notes

  • Spans started after the tracer has been shut down will no longer be sent to the Datadog Agent.
  • aiohttp_jinja2: use patch(aiohttp_jinja2=True) instead of patch(aiohttp=True) for enabling/disabling the integration.

Bug Fixes

  • botocore: fix incorrect context propagation message attribute types for SNS. This addresses Datadog/serverless-plugin-datadog#232
  • aiohttp: fix issue causing ddtrace.contrib.aiohttp_jinja2.patch module to be imported instead of the patch() function.

0.60.1

30 Mar 18:08
fdb82b0

Choose a tag to compare

Bug Fixes

  • botocore: omit SecretBinary and SecretString from span metadata for calls to Secrets Manager.

0.60.0

24 Mar 18:29
7555c50

Choose a tag to compare

Prelude

In preparation for the upcoming v1.0.0 release, we recommend users enable deprecation warnings after having installed ddtrace>=0.60.0,<1.0.0. See the Upgrading and deprecation warnings section for further details.

New Features

  • asyncpg: add integration supporting v0.18.0 and above. See the docs for more information.

  • Add environment variable DD_TRACE_RAISE_DEPRECATIONWARNING to raise library deprecation warnings as errors for those unable to configure warning filters otherwise.

  • Add Span.get_tags and Span.get_metrics.

  • aiohttp: add client integration. This integration traces requests made using the aiohttp client and includes support for distributed tracing. See the documentation for more information.

  • aiohttp_jinja2: move into new integration. Formerly the aiohttp_jinja2 instrumentation was enabled using the aiohttp integration. Use patch(aiohttp_jinja2=True) instead of patch(aiohttp=True). To support legacy behavior patch(aiohttp=True) will still enable aiohttp_jinja2.

  • fastapi: add support for tracing fastapi.routing.serialize_response.
    This will give an insight into how much time is spent calling jsonable_encoder within a given request. This does not provide visibility into how long it takes for Response.render/json.dumps.

Deprecation Notes

  • Span.to_dict is deprecated and will be removed in v1.0.0.
  • ddtrace.Tracer.log is deprecated. Use logging.getLogger("ddtrace.tracer") instead.
  • Tracer.write() is deprecated. Writing spans to the writer through the tracer is not supported.

Bug Fixes

  • botocore: fix incorrect context propagation message attribute types for SNS. This addresses Datadog/serverless-plugin-datadog#232
  • aiohttp: fix issue causing ddtrace.contrib.aiohttp_jinja2.patch module to be imported instead of the patch() function.
  • Remove Pin.app deprecation warning from celery instrumentation.
  • tracing/internal: fix encoding of propagated internal tags.
  • Fix issue building ddtrace from source on macOS 12.
  • Fixes wrong numbers of memory allocation being reported in the memory profiler.
  • pymongo: fix write_command being patched with the wrong method signature.

Other Notes

  • tracing/internal: disable Datadog internal tag propagation

0.60.0rc5

23 Mar 14:48
7555c50

Choose a tag to compare

0.60.0rc5 Pre-release
Pre-release

Bug Fixes

0.59.2

23 Mar 21:32
e75bec8

Choose a tag to compare

Bug Fixes

0.60.0rc4

21 Mar 15:44
7630d05

Choose a tag to compare

0.60.0rc4 Pre-release
Pre-release

Bug Fixes

  • aiohttp: fix issue patching aiohttp when aiohttp_jinja2 is not installed.

0.60.0rc3

17 Mar 22:21
8a5691c

Choose a tag to compare

0.60.0rc3 Pre-release
Pre-release

Bug Fixes

  • aiohttp: fix issue causing ddtrace.contrib.aiohttp_jinja2.patch module to be imported instead of the patch() function.
  • Remove Pin.app deprecation warning from celery instrumentation.

0.60.0rc2

16 Mar 13:30
f8ed932

Choose a tag to compare

0.60.0rc2 Pre-release
Pre-release

New Features

  • asyncpg: add integration supporting v0.18.0 and above. See the docs for more information.

1.0.0rc2

16 Mar 15:27
9614a34

Choose a tag to compare

1.0.0rc2 Pre-release
Pre-release

New Features

  • Add Span.get_tags and Span.get_metrics.
  • aiohttp: add client integration. This integration traces requests made using the aiohttp client and includes support for distributed tracing. See the documentation for more information.
  • aiohttp_jinja2: move into new integration. Formerly the aiohttp_jinja2 instrumentation was enabled using the aiohttp integration. Use patch(aiohttp_jinja2=True) instead of patch(aiohttp=True). To support legacy behavior patch(aiohttp=True) will still enable aiohttp_jinja2.
  • asyncpg: add integration supporting v0.18.0 and above. See the docs for more information.

Upgrade Notes

  • ddtrace.constants.FILTERS_KEY is removed.
  • ddtrace.constants.NUMERIC_TAGS is removed.
  • ddtrace.constants.LOG_SPAN_KEY is removed.
  • ddtrace.Span.set_meta is removed. Use ddtrace.Span.set_tag instead.
  • ddtrace.Span.set_metas is removed. Use ddtrace.Span.set_tags instead.
  • Span.to_dict is removed.

Bug Fixes

  • Fix issue building ddtrace from source on macOS 12.
  • Fixes wrong numbers of memory allocation being reported in the memory profiler.
  • pymongo: fix write_command being patched with the wrong method signature.