Change8

v3.11.3

📦 datadog-sdkView on GitHub →
🐛 8 fixes🔧 9 symbols

Summary

This release focuses on numerous bug fixes across various integrations, including AAP, Kafka, OpenAI, and tracing, improving stability and correctness, especially around exception handling and trace sampling.

🐛 Bug Fixes

  • ASGI middleware in AAP now correctly catches BlockingException raised by AAP, as it was previously aggregated in an ExceptionGroup.
  • The Django path function now correctly handles the 'route' parameter in AAP.
  • Captured value redaction in dynamic instrumentation mappings has been extended to include keys of type 'bytes'.
  • The Kafka integration now sets a 1-second timeout on 'list_topics' calls and caches cluster ID results (successes and failures with a 5-minute retry interval) to prevent indefinite hanging during metadata queries.
  • An 'AttributeError' caused by an uninitialized 'OpenAI/AsyncOpenAI' client is resolved.
  • Enabling Pydantic AI for 'pydantic-ai-slim' version >= 0.4.4 no longer fails.
  • Remote Config now queries eagerly upon process startup to ensure timely configuration updates.
  • Trace sampling during partial flush (traces >300 spans) is fixed to consistently apply sampling rules to the root span instead of a random payload span, preventing bypass of sampling rules.

🔧 Affected Symbols

ASGI middleware (AAP)route parameter (Django path function)list_topics (Kafka integration)OpenAI clientAsyncOpenAI clientPydantic AIpydantic-ai-slimRemote Configtracing sampling