v4.10.6
📦 datadog-sdkView on GitHub →
🐛 5 fixes🔧 3 symbols
Summary
This release focuses on stability and correctness in tracing, particularly for async generators across various Python versions, and resolves an issue with token reporting in LLM observability for streamed OpenAI completions.
🐛 Bug Fixes
- Resolved an issue in tracing where wrapping an async generator on Python 3.11 through 3.14 raised a TypeError when the generator body awaited a coroutine before its first yield.
- Fixed an issue in the openai integration for LLM Observability where streamed chat completion spans under-reported token counts for OpenAI-compatible providers emitting cumulative usage objects on every chunk.
- Ensured that applying @tracer.wrap() to an async generator now correctly forwards sent values, thrown exceptions, and close requests to the underlying generator, fixing dropped sent values and skipped cleanup on early closure or exceptions.
- Prevented periodic thread restarts from blocking application code resumption in forked children within the core.
- Fixed a rare crash occurring on CPython versions prior to 3.12 related to tracing.