pypi ddtrace 4.15.3

4 hours ago

Bug Fixes

  • LLM Observability:
    • Resolves an issue where a streamed Bedrock InvokeModelWithResponseStream request that ended in an error or was cancelled part-way produced a span with no output annotation. The text received before the failure is now tagged on the span.
    • Resolves an issue where a streamed Bedrock ConverseStream request that ended in an error or was cancelled part-way produced a span that was not marked as an error, making an interrupted request indistinguishable from a successful one.
    • This fix resolves an issue where cancelled or failed OpenAI streamed requests produced no LLM Observability span at all. These requests now produce an LLM span carrying the input messages, whatever output arrived before the stream ended, and estimated token metrics.
  • internal:
    • Fixes incorrect telemetry being collected when hitting cardinality limits during stats computation.
  • tracing:
    • Fixes an issue where the Python garbage collector stops and memory grows without limit when DD_RUNTIME_METRICS_ENABLED is true.
  • Profiling:
    • A crash that could occur in applications that use signal handlers to recover from crashes has been fixed.

Don't miss a new ddtrace release

NewReleases is sending notifications on new releases.