Bug Fixes
- Code Security: Adds
encodings.idna
to the IAST patching denylist to avoid problems withgevent
. - 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 theerror.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
andmax_tokens
parameters to LLM invocations. The OpenAI integration in particular was setting the wrongtemperature
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 anIndexError
. - 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 withnumerical
type will now be automatically converted to ascore
type. As an alternative to using thenumerical
type, usescore
instead.