Change8

v4.8.5

📦 datadog-sdkView on GitHub →
🐛 4 fixes1 deprecations🔧 6 symbols

Summary

This release focuses on bug fixes across LLM Observability integrations (Bedrock, OpenAI, Claude Agent SDK) and resolves a startup failure in Starlette when tracing is enabled. It also deprecates an old tracing environment variable.

Migration Steps

  1. Replace usage of the deprecated environment variable DD_TRACE_INFERRED_SPANS_ENABLED with DD_TRACE_INFERRED_PROXY_SERVICES_ENABLED.

🐛 Bug Fixes

  • LLM Observability: Resolved an issue where text wrapped in Bedrock Converse guardContent content blocks was rendered as "[Unsupported content type: guardContent]" in traces, dropping the user's input.
  • LLM Observability: The OpenAI integration now preserves assistant message content when tool_calls are present on the same message.
  • Starlette: Resolved an issue where passing middleware=None caused application startup to fail when Starlette tracing was enabled.
  • LLM Observability: Resolved an issue in the Claude Agent SDK integration where unnecessary LLM spans were being created; the handler now only opens a new LLM span after a UserMessage that actually contained tool results.

Affected Symbols

⚡ Deprecations

  • Tracing: DD_TRACE_INFERRED_SPANS_ENABLED is deprecated and will be removed in 5.0.0. Use DD_TRACE_INFERRED_PROXY_SERVICES_ENABLED instead. The old environment variable continues to work but emits a DDTraceDeprecationWarning when set.