github DataDog/dd-trace-py v2.9.3
2.9.3

latest releases: v2.15.2, v2.14.6, v2.16.0...
3 months ago

Bug Fixes

  • Code Security: Adds encodings.idna to the IAST patching denylist to avoid problems with gevent.
  • Code Security: Adds the boto package to the IAST patching denylist.
  • celery: Changes error.message span tag to no longer include the traceback that is already included in the error.stack span tag.
  • CI Visibility: Fixes source file information that would be incorrect in certain decorated / wrapped scenarios, and forces paths to be relative to the repository root if present.
  • LLM Observability: Resolves a typing hint error in the ddtrace.llmobs.utils.Documents helper class constructor where type hints did not accept input dictionaries with integer or float values.
  • LLM Observability: Resolves an issue where the OpenAI and AWS Bedrock integrations were always setting temperature and max_tokens parameters to LLM invocations. The OpenAI integration in particular was setting the wrong temperature default values. These parameters are now only set if provided in the request.
  • profiling: Fixes an issue where task information coming from echion was encoded improperly, which could segfault the application.
  • tracing: Fixes a potential crash where using partial flushes and tracer.configure() could result in an IndexError.
  • internal: fixes an issue where some pathlib functions return OSError on Windows.
  • flask: Fix scenarios when using flask-like frameworks would cause a crash because of patching issues on startup.
  • wsgi: Ensures the status of wsgi Spans are not set to error when a StopIteration exception is raised. With this change, StopIteration exceptions in this context will be ignored.
  • langchain: Tags non-dict inputs to LCEL chains appropriately. Non-dict inputs are stringified, and dict inputs are tagged by key-value pairs.

Other Changes

  • LLM Observability: The SDK allowed users to submit an unsupported numerical evaluation metric type. All evaluation metric types submitted with numerical type will now be automatically converted to a score type. As an alternative to using the numerical type, use score instead.

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

NewReleases is sending notifications on new releases.