Deprecation Notes
- Tracing
- The
escaped
andtimestamp
arguments in therecord_exception
method are deprecated and will be removed in version 4.0.0.
- The
New Features
-
LLMObs:
google_genai
: Introduces tracing support for Google's Generative AI SDK for Python'sgenerate_content
andgenerate_content_stream
methods.
See the docs for more information.
-
Tracing:
azure_servicebus
: Add support for Azure Service Bus producers.azure_functions
: Add distributed tracing support for Service Bus triggers.ddtrace-api
: Adds patching ofddtrace_api.tracer.set_tags
to theddtrace_api
integration
Bug Fixes
-
CI Visibility:
- This fix resolves an issue where code coverage would not be enabled if ddtrace was enabled via the
PYTEST_ADDOPTS
environment variable.
- This fix resolves an issue where code coverage would not be enabled if ddtrace was enabled via the
-
Dynamic Instrumentation:
- Fixed an issue with the instrumentation of the first line of an iteration block (e.g. for loops) that could have caused undefined behavior.
- Fixed an issue that prevented line probes from being instrumented on a line containing just the code
try:
for CPython 3.11 and later.
-
Tracing:
- This fix resolves an issue where the
@tracer.wrap()
decorator failed to preserve return values from generator functions, causingStopIteration.value
to beNone
instead of the actual returned value. rq
: Enable parsing distributed tracing metadata in perform job
- This fix resolves an issue where the
-
LLMObs:
langchain
: Resolved anAttributeError
that could occur when async tasks are cancelled during agenerate calls.
-
Logging:
- Ensured that
ddtrace.tracer.get_log_correlation_context()
returns the expected log correlation attributes (e.g.,dd.trace_id
,dd.span_id
,dd.service
instead oftrace_id
,span_id
,service
). This change aligns the method's output with the attributes in ddtrace log-correlation docs. - Fixed an issue where
ddtrace.tracer.get_log_correlation_context()
would return the service name of the current span instead of the global service name.
- Ensured that
Other Changes
- Library Injection:
- Additional fields have been added to the telemetry forwarder used during Single Step to surface troubleshooting insights in the Datadog UI.