github DataDog/dd-trace-py v1.20.11
1.20.11

latest releases: v2.12.2, v2.11.6, v2.11.5...
10 months ago

New Features

  • wsgi: This change introduces the keyword argument app_is_iterator to the DDWSGIMiddleware constructor. It's provided as a workaround for an issue where the Datadog WSGI middleware would fail to handle WSGI apps that are not their own iterators. This condition can arise when a Django app attempts to send its "request finished" signal, in which case it may cause connection leaks. Standard methods of distinguishing an iterable from its iterator, such as checking for the presence of iter and next dunder methods, don't work in this case for unknown reasons. Instead of adding brittle special-case detection logic to the middleware, this new argument allows users to indicate when this is the case.

Bug Fixes

  • CI: fixes an issue which prevented the library from filtering user credentials for SSH Git repository URLs
  • tracing: Fixes a msgpack import error when DD_TRACE_API is set to v0.5
  • remote config: Add git metadata to configuration requests to ensure Source Code Integration (SCI) works as expected with services that require it.
  • ASM: add support for psycopg2 adapt mechanism to LazyTaintList, preventing a ProgrammingError when using psycopg2 with IAST.
  • langchain: This fix resolves an issue with tagging pydantic SecretStr type api keys.
  • lib injection: Fix permissions error raised when non-root users copy single step instrumentation files.

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

NewReleases is sending notifications on new releases.