github DataDog/dd-trace-py v1.8.0rc1
1.8.0rc1

latest releases: v2.15.2, v2.14.6, v2.16.0...
pre-release21 months ago

Release Notes

Upgrade Notes

  • ASM: libddwaf upgraded to version 1.6.1 using a new library loading mechanism
  • profiling: upgrades the profiler to support the v2.4 backend API for profile uploads, using a new request format.

Deprecation Notes

  • DD_REMOTECONFIG_POLL_SECONDS environment variable is deprecated and will be removed in v2.0. Please use DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS instead.

New Features

  • CI Visibility: Add support for CI provider buddy.works
  • The component tag has been added for all auto-instrumented spans. The value of the component tag is equal to the name of the integration that produced the span.
  • tracing: Adds support for IPv6 agent hostnames for DD_AGENT_HOST.
  • elasticsearch: Update elasticsearch integration to add support for opensearch-py. See the elasticsearch documentation for more information.
  • ASM: New Application Security Events Tracking API, starting with the functions track_user_login_success_event and
    track_user_login_failure_event for tracking user logins (it will also internally call set_user) and track_custom_event for any custom events. You can find these functions in the ddtrace.appsec.trace_utils module. Calling these functions will create new tags under the appsec.events namespace (appsec.events.user.login for logins) allowing you to track these events with Datadog. In the future this will be used to provide protection against account takeover attacks (ATO). Public documentation will be online soon.
  • tornado: Support custom error codes: https://ddtrace.readthedocs.io/en/stable/advanced_usage.html#custom-error-codes.
  • CI Visibility: Support reliably linking tests to the pipeline that executed them.

Known Issues

  • profiling: There is currently a known Python 3.11 compatibility issue where the stack collector does not properly access PyFrameObject member values, as PyFrameObject is now created and computed lazily in Python 3.11. Until this is fixed, we advise against enabling the profiler while using Python 3.11.
  • profiling: There is currently a known performance regression issue with the profiler's code provenance feature. Note that this feature is disabled by default and will only be enabled if DD_PROFILING_ENABLE_CODE_PROVENANCE is set to true.

Bug Fixes

  • This fix improves a cryptic error message encountered during some pip install ddtrace runs under pip versions <18.
  • profiling: This fix resolves an issue in Python 3.11 where a PyFrameObject strong reference count was not properly decremented in the stack collector.

Other Changes

  • profiler: CPU overhead reduction.

Don't miss a new dd-trace-py release

NewReleases is sending notifications on new releases.