Skip to content

Releases: DataDog/dd-trace-py

2.21.9

04 Jun 18:42
6db5511

Choose a tag to compare

Bug Fixes

  • CI Visibility:
    • Resolved an issue where the CODEOWNERS file of the project being tested was looked up in the current working directory rather than the repository root.
  • Dynamic Instrumentation:
    • Fixed an issue with a GC-based lookup for code origin resolution resulting in high performance overhead.
  • Kafka:
    • Fixed an issue where a producer or consumer initialized with an unpacked config resulted in TypeError, causing a failed connection. confluent-kafka supports both unpacked and packed config; this change allows initialization with either.
  • Profiling:
    • Fixed an issue in the SynchronizedSamplePool where pool could be null when calling into ddog_ArrayQueue_ functions, leading to segfaults in the uWSGI shutdown
  • Tracing:
    • Fixed a bug in the sampling rule matcher where the pattern ?* was not being matched correctly for DD_TRACE_SAMPLING_RULES tags, due to it matching on spans with no tag matching the specified key.

3.8.1

30 May 12:45
181d6e9

Choose a tag to compare

Bug Fixes

  • CI Visibility:
    • Fix resolves an issue where running from a GitHub
      action triggered on a tag push would cause the branch name to be null,
      causing errors when fetching Test Optimization settings from the
      backend.
  • Dynamic Instrumentation:
    • Fix an issue where only module scopes were
      being uploaded, preventing method probes from being created.

3.8.0

23 May 08:55
c17a3bd

Choose a tag to compare

New Features

  • LLM Observability: add processor capability to process span inputs and outputs. See usage documentation here.
  • CI Visibility: This introduces the ability to gzip the payload when using the evp proxy setup, incurring in less network bandwith consumption.
  • Error Tracking: Introduces automatic reporting of handled exceptions. Enabling the feature will report handled exceptions to Error Tracking from the user code, the third party packages code, some specified modules or everything based on configuration. This feature can be controlled using two environment variables:
    • DD_ERROR_TRACKING_HANDLED_ERRORS=allthird_party
    • DD_ERROR_TRACKING_HANDLED_ERRORS_INCLUDE=module1, module2, module3.submodule
  • Code Security: IAST support for langchain v0.1.0 and above.
  • openai: This introduces tracing support for the OpenAI Responses endpoint.

Bug Fixes

  • tracing

    • Fixes an issue where truncation of span attributes longer than 25000 characters would not consistently count the size of UTF-8 multibyte characters, leading to a unicode string is too large error.
    • Fixes a bug in distributed tracing where pickling ddtrace.trace.Context fails in coroutines. This regression was introduced in v3.7.0.
  • CI Visibility

    • This fix resolves an issue where the DD_CIVISIBILITY_ITR_ENABLED was not honored properly.
    • This fix resolves an issue where pytest-xdist would not exit with the proper status code if ATR was enabled.
    • This fix resolves an issue where ddtrace pytest plugin used with xdist would report test suites as failing even when all tests pass.
  • profiling

    • fixed an issue in the SynchronizedSamplePool where pool could be null when calling into ddog_ArrayQueue_ functions, leading to segfaults in the uWSGI shutdown
    • improve performance of the memory profiler for large heaps. The memory profiler previously did a linear search of tracked allocations for every free, which scaled very poorly with large heaps. Switch to a fast hash map.
  • Code Security

    • IAST
      • Avoid excessive filtering of stacktrace locations when finding vulnerabilities. After this change, vulnerabilities that were previously discarded will now be reported. In particular, if they were found within code in site-packages or outside of the working directory.
  • LLM Observability

    • Resolves an issue where spans and evaluation metrics were not being sent via Unix sockets.
  • dynamic instrumentation

    • prevent an exception when trying to remove a probe that did not resolve to a valid source code location.
  • kafka

    • This fix resolves an issue where message headers were sent to Kafka brokers that do not support them. Message headers are turned off when the Kafka server responds with UNKNOWN_SERVER_ERROR (-1).
  • code origin for spans

    • fixes a performance issue with exit spans.

3.8.0rc3

22 May 10:04
c17a3bd

Choose a tag to compare

3.8.0rc3 Pre-release
Pre-release

New Features

Bug Fixes

  • tracing: Fixes an issue where truncation of span attributes longer than 25000 characters would not consistently count the size of UTF-8 multibyte characters, leading to a unicode string is too large error.

3.7.2

22 May 15:50
e25092f

Choose a tag to compare

Bug Fixes

  • CI Visibility: This fix resolves an issue where the DD_CIVISIBILITY_ITR_ENABLED was not honored properly.
  • tracing: Fixes an issue where truncation of span attributes longer than 25000 characters would not consistently count the size of UTF-8 multibyte characters, leading to a unicode string is too large error.

3.8.0rc2

21 May 08:48
f79ce6f

Choose a tag to compare

3.8.0rc2 Pre-release
Pre-release

Bug Fixes

  • CI Visibility

    • Resolves an issue where the DD_CIVISIBILITY_ITR_ENABLED was not honored properly.
  • Tracing

    • Fixes a bug in distributed tracing where pickling ddtrace.trace.Context fails in coroutines. This regression was introduced in v3.7.0.

3.8.0rc1

19 May 11:36
a451470

Choose a tag to compare

3.8.0rc1 Pre-release
Pre-release

New Features

  • CI Visibility

    • Introduces the ability to gzip the payload when using the evp proxy setup, incurring in less network bandwidth consumption.
  • Code Security

    • IAST support for langchain v0.1.0 and above.
  • Error Tracking

    • Introduces automatic reporting of handled exceptions. Enabling the feature will report handled exceptions to Error Tracking from the user code, the third party packages code, some specified modules or everything based on configuration. This feature can be controlled using two environment variables:
      • DD_ERROR_TRACKING_HANDLED_ERRORS=user|third_party|all
      • DD_ERROR_TRACKING_HANDLED_ERRORS_INCLUDE=module1, module2, module3.submodule
  • LLM Observability

    • openai: Introduces tracing support for the OpenAI Responses endpoint.

Bug Fixes

  • CI Visibility

    • Resolves an issue where pytest-xdist would not exit with the proper status code if ATR was enabled.
    • Resolves an issue where ddtrace pytest plugin used with xdist would report test suites as failing even when all tests pass.
  • Code Origin

    • Fixes a performance issue with exit spans.
  • Code Security (IAST)

    • Avoids excessive filtering of stacktrace locations when finding vulnerabilities. After this change, vulnerabilities that were previously discarded will now be reported. In particular, if they were found within code in site-packages or outside of the working directory.
  • Dynamic Instrumentation

    • Prevents an exception when trying to remove a probe that did not resolve to a valid source code location.
  • LLM Observability

    • Resolves an issue where spans and evaluation metrics were not being sent via Unix sockets.
  • Profiling

    • Fixes an issue in the SynchronizedSamplePool where pool could be null when calling into ddog_ArrayQueue_ functions, leading to segfaults in the uWSGI shutdown
    • Improves performance of the memory profiler for large heaps. The memory profiler previously did a linear search of tracked allocations for every free, which scaled very poorly with large heaps. Switch to a fast hash map.
  • Tracing

    • kafka: Resolves an issue where message headers were sent to Kafka brokers that do not support them. Message headers are turned off when the Kafka server responds with UNKNOWN_SERVER_ERROR (-1).

3.7.1

19 May 12:17
8e3ea51

Choose a tag to compare

Bug Fixes

  • CI Visibility: This fix resolves an issue where pytest-xdist would not exit with the proper status code if ATR was enabled.
  • CI Visibility: This fix resolves an issue where ddtrace pytest plugin used with xdist would report test suites as failing even when all tests pass.

2.21.8

16 May 11:13
d141a48

Choose a tag to compare

Bug Fixes

  • Code Security:
    • Avoid excessive filtering of stacktrace locations when finding vulnerabilities. After this change, vulnerabilities that were previously discarded will now be reported. In particular, if they were found within code in site-packages or outside of the working directory.
    • Fixes a bug where invalid f-strings didn’t raise the expected "Unknown format code" error when IAST was enabled.
  • Profiling:
    • Improve performance of the memory profiler for large heaps. The memory profiler previously did a linear search of tracked allocations for every free, which scaled very poorly with large heaps. Switch to a fast hash map.
  • Other:
    • Code origin for spans: fixes a performance issue with exit spans.
    • Fix a potential circular import with the psycopg2 contrib.

2.21.7

07 May 23:44
b973b3a

Choose a tag to compare

Bug Fixes

  • Dynamic Instrumentation
    • Fixes incompatibility between code origin and dynamic instrumentation probe on exit span functions.