Skip to content

Releases: DataDog/dd-trace-py

0.26.0

05 Jun 18:49
411f218

Choose a tag to compare

Upgrading to 0.26.0

This release introduces several core improvements and continues addressing pain points in our tooling and testing.

Changes

Core

  • Add a PeriodicWorker base class for periodic tasks (#934)
  • Fix runtime workers not flushing to Dogstatsd (#939)
  • api: simplify _put codepath (#956)
  • make psutil requirement more accurate (#949 -- thanks @chrono)
  • writer: log a message when a trace is dropped (#942)
  • span: use system random source to generate span id (#940)
  • [core] Add config to set hostname tag on trace root span (#938)

Integrations

  • Support keyword 'target' parameter when wrapping GRPC channels (#946 -- thanks @asnr)
  • Record HTTP status code correctly when using abort() with Bottle (#943 -- thanks @equake)
  • boto: add support for Python 3.5+ (#930)

Documentation

  • fix documentation for current_root_span (#950 -- thanks @chrono)

Tooling

  • Run flake8 with Python 3 (#957)
  • tox: fix ignore path for integrations (#954)
  • Remove mention of -dev branch in CircleCI (#931)

Testing

  • [tests] Add benchmarks (#952)
  • [tests] increase deviation for sampler by service test (#948)
  • [tests] Fix thread synchronization (#947)
  • [tests] fix brittle deviation test for tracer (#945)
  • [tests] fix threading synchronization to opentracer test (#944
  • [pyramid] Fix dotted name for autopatched config test (#932)
  • tests: always skip sdist, use develop mode (#928)

Read the full changeset and the release milestone.

0.25.0

07 May 16:22
a78055b

Choose a tag to compare

Upgrading to 0.25.0

This release includes several core improvements and addresses pain points in our testing/CI. The release also adds a new integration for Algolia Search.

Changes

Improvements

  • Type cast port number to avoid surprise unicode type (#892 -- thanks @tancnle)
  • Add support for Python 3.7 (#864)
  • [writer] Enhance Q implementation with a wait based one (#862)
  • [core] Add Span 'manual.keep' and 'manual.drop' tag support (#849)
  • [core] Vendor msgpack dependency (#848)
  • Fix http.url tag inconsitency (#899)
  • aiohttp: do not set query string in http.url tag (#923)
  • tornado: do not include query string in the http.url tag (#922)
  • bottle: fix query string embedded in URL (#921)
  • django: remove query string from http.url tag (#920)

Integrations

  • Implement algolia search (#894)

Tooling

  • [dev/tooling] Enforce single quote strings (#884)
  • [tests] Leverage tox environment listing to simplify CircleCI tox target list (#882)

Testing

  • tests/tornado: enhance test_concurrent_requests (#915)
  • doc: disable fixed sidebar (#906)
  • [opentracer] Refactor time usage (#902)
  • [opentracer] Fix flaky test based on sleep (#901)
  • [internal] Add and use RuntimeWorker.join() to remove race condition in testing (#887)

0.24.0

15 Apr 17:57
4c54d82

Choose a tag to compare

Upgrading to 0.24.0

This release introduces a new feature (disabled by default), supports new versions of integrations and improves our testing and tooling.

Changes

Improvements

  • [core] Enable requests integration by default (#879)
  • [core] Fix logging with unset DATADOG_PATCH_MODULES (#872)
  • [core] Use DEBUG log level for RateSampler initialization (#861 -- thanks @bmurphey)
  • [core] Guard against when there is no current call context (#852)
  • [core] Collect run-time metrics (#819)

Integrations

  • [mysql] Remove mysql-connector 2.1 support (#866)
  • [aiobotocore] Add support for versions up to 0.10.0 (#865)

Tooling

  • [dev/tooling] Update flake8 to 3.7 branch (#856)
  • [dev/tooling] Add script to build wheels (#853)
  • [ci] Use tox.ini checksum to update cache (#850)

Testing

  • [tests] Use a macro to persist result to workspace in CircleCI (#880)
  • [tests] add psycopg2 2.8 support (#878)
  • [aiohttp] Fix race condition in testing (#877)
  • [docs] Remove confusing testing instructions from README (#874)
  • [tests] Add support for aiohttp up to 3.5 (#873)
  • Remove useless future imports (#871)
  • [testing] Remove nose usage (#870)
  • [tests] Add support for pytest4 (#869)
  • [tests] Add testing for Celery 4.3 (#868)
  • [tests] Enable integration tests in docker-compose environment (#863)
  • [tests] Do not test celery 4.2 with Kombu 4.4 (#858)
  • [tests] Fix ddtrace sitecustomize negative test (#857)
  • [tests] Use spotify cassandra image for tests (#855)
  • [tests] Fix requests gevent tests (#854)

0.23.0

19 Mar 18:53

Choose a tag to compare

Upgrading to 0.23.0

With this release we are introducing a new configuration system across integrations to generate APM events for Trace Search & Analytics. The other core changes are the beginnings of a new approach to address issues with tracer loads and improve debugging.

Changes

Improvements

  • Trace search client configuration (#828)
  • [core] fix wrapt wrappers sources (#836)
  • [core] Add Payload class helper (#834)
  • [internal] Add rate limited logger (#822)

Bugs

Read the full changeset and the release milestone.

0.22.0

01 Mar 19:00
7b34bb8

Choose a tag to compare

Upgrading to 0.22.0

This release contains a few improvements for not marking a Celery task as an error if it is an expected and allowed exception, for propagating synthetics origin header, and to vendor our six and wrapt dependencies.

Changes

Improvements

  • [celery] Don't mark expected failures as errors (#820 -- thanks @sciyoshi)
  • [core] Propagate x-datadog-origin (#821)
  • [core] vendor wrapt and six dependencies (#755)

Read the full changeset and the release milestone.

0.21.1

21 Feb 21:57
64e15f5

Choose a tag to compare

Upgrading to 0.21.1

This is a bug fix release that requires no changes to your code.

Included in this release is a fix for some database cursors where we would force Cursor.execute and Cursor.executemany to return a cursor instead of the originally intended output. This caused an issue specifically with MySQL libraries which tried to return the row count and we were returning a cursor instead.

Changes

Bugs

  • [core] Patch logging earlier for ddtrace-run (#832)
  • [dbapi2] Fix dbapi2 execute/executemany return value (#830 )
  • [core] Use case-insensitive comparison of header names during extract (#826 -- thanks @defanator)

Read the full changeset and the release milestone.

0.21.0

19 Feb 17:20
e26c219

Choose a tag to compare

Upgrading to 0.21.0

With this release we are moving distributed tracing settings to be enabled by default. This change means that you no longer need to explicitly enable distributed tracing for any integration.

Changes

Improvements

  • Enable distributed tracing by default (#818)
    • aiohttp
    • bottle
    • flask
    • molten
    • pylons
    • pyramid
    • requests
    • tornado
  • [testing] Ensure consistent use of override_config and override_env (#815)
  • [core] Break up ddtrace.settings into sub-modules (#814)
  • [tests] Simplify elasticsearch CI test commands (#813)
  • [core] Remove sending of service info (#811)
  • [core] Add import hook module (#769)

Read the full changeset and the release milestone.

0.20.4

08 Feb 17:35
513cd2c

Choose a tag to compare

Upgrading to 0.20.4

This is a bug fix release, no code changes are required.

In this release we have fixed a bug that caused some configuration values to not get updated when set.

Changes

Bug fixes

  • [bug] Integration config keys not being updated (#816)

Read the full changeset and the release milestone.

0.20.3

04 Feb 20:07
c8b1f40

Choose a tag to compare

Upgrading to 0.20.3

This is a bug fix release that requires no changes.

This release includes a fix for context propagation with futures. Under the right conditions we could incorrectly share a trace context between multiple futures threads which result in multiple traces being joined together in one.

Changes

Bug fixes

  • [core] Allow futures to skip creating new context if one doesn't exist (#806)

Read the full changeset and the release milestone.

0.20.2

29 Jan 21:47

Choose a tag to compare

Upgrading to 0.20.2

No changes are needed to upgrade to 0.20.2.

This big fix release includes changes to ensure we properly read the HTTP response body from the trace agent before we close the HTTP connection.

Changes

Bug fixes

  • [core] Call HTTPResponse.read() before HTTPConnection.close() (#800)

Improvements

  • [tests] limit grpcio version to >=1.8.0,<1.18.0 (#802)
  • [tools] Add confirmation to 'rake pypi:release' task (#791 )

Read the full changeset and the release milestone.