chore(deps): update dependency ddtrace to v3.19.0 #412
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.16.0->3.19.0Release Notes
DataDog/dd-trace-py (ddtrace)
v3.19.0: 3.19.0Compare Source
Estimated end-of-life date, accurate to within three months: 08-2026
See the support level definitions for more information.
Upgrade Notes
Deprecation Notes
Span.finishedsetter is deprecated, useSpan.finish()method instead.Span.finish_with_ancestors()is deprecated with no alternative.ExperimentResultclass'rowsandsummary_evaluationsattributes are deprecated and will be removed in the next major release.ExperimentResult.rows/summary_evaluationsattributes will only store the results of the first run iteration for multi-run experiments. Use theExperimentResult.runsattribute instead to access experiment results and summary evaluations.New Features
runsargument, to assess the true performance of an experiment in the face of the non determinism of LLMs. Use the newExperimentResultclass'runsattribute to access the results and summary evaluations by run iteration.Bug Fixes
Lock,RLock,Event).ResourceWarningin multiprocess scenarios.Other Changes
wraptlibrary dependency from the Lock Profiler implementation, improving performance and reducing overhead during lock instrumentation.v3.18.1: 3.18.1Compare Source
Estimated end-of-life date, accurate to within three months: 08-2026
See the support level definitions for more information.
Bug Fixes
CI Visibility: this fix resolves an issue where repo tags would be fetched while unshallowing to extract commit metadata, causing performance issues for repos with a large number of tags.
LLM Observability: fix support for HTTPS_PROXY.
Error Tracking: Modifies the way exception events are stored such that the exception id is stored instead of the exception object, to prevent TypeErrors with custom exception objects.
v3.18.0: 3.18.0Compare Source
Estimated end-of-life date, accurate to within three months: 08-2026
See the support level definitions for more information.
Upgrade Notes
tiktokenlibrary, and insteadwill default to having their token counts estimated if not explicitly provided in the OpenAI response object. To guarantee accurate streamed token metrics, set
stream_options={"include_usage": True}in the OpenAI request.Deprecation Notes
Span.set_struct_tagis deprecated and will be removed in v4.0.0 with no direct replacement.Span.get_struct_tagis deprecated and will be removed in v4.0.0 with no direct replacement.Span.set_tag_stris deprecated and will be removed in version 4.0.0.As an alternative to
Span.set_tag_str, you can useSpan.set_taginstead.DD_PROFILING_STACK_V2_ENABLED=falsewill no longer have an effect starting in 4.0.New Features
urllib3andrequests. It does not require enabling APM instrumentation forurllib3anymore.threading.RLock(reentrant lock) profiling. The Lock profiler now tracks boththreading.Lockandthreading.RLockusage, providing comprehensive lock contention visibility for Python applications.versionargument toLLMObs.pull_datasetversionandlatest_versionto provide information on the version of the dataset that is being worked with and the latest global version of the dataset, respectivelyBug Fixes
versionfield. The version field is now omitted unless explicitly set by the user.IndexError.assessmentargument insubmit_evaluation().assessmentnow refers to whether the evaluation itself passes or fails according to your application, rather than the validity of the evaluation result.langchainintegration would incorrectly mark Azure OpenAI calls as duplicate llm operations even if theopenaiintegration was enabled.The
langchainintegration will trace Azure OpenAI spans as workflow spans if there is an equivalent llm span from theopenaiintegration.async for model in client.models.list()) caused aTypeError: 'async for' requires an object with __aiter__ method, got coroutine. See issue #14574.KeyErrorexceptions in test runs when gevent is detected within the environment.ray.init().ray.data._internalto the module denylist._acquiremethod of the Lock profiler (note: this only occurs when assertions are enabled.)DD_PROFILING_API_TIMEOUTdoesn't have any effect, and is marked to be removed in upcoming 4.0 release. New environment variableDD_PROFILING_API_TIMEOUT_MSis introduced to configure timeout for uploading profiles to the backend. The default value is 10000 ms (10 seconds)ValueError: Formatting field not found in record: 'dd.service'.v3.17.3: 3.17.3Compare Source
Estimated end-of-life date, accurate to within three months: 08-2026
See the support level definitions for more information.
Bug Fixes
CI Visibility: This fix addresses a performance issue where repository tags were fetched during the unshallow process to extract commit metadata, causing slowdowns in repositories with many tags.
LLM Observability: Resolves an issue in the bedrock integration where invoking cohere rerank models would result in missing spans due to output formatting index errors.
opentelemetry:
ray: This fix resolves an issue where the tracer raised an error when submitting Ray tasks without explicitly calling
ray.init().tracer: This fix resolves an issue where an application instrumented by ddtrace could crash at start. Fix compatibility with
zope.event==6.0v3.17.2: 3.17.2Compare Source
Estimated end-of-life date, accurate to within three months: 08-2026
See the support level definitions for more information.
Bug Fixes
versionfield. The version field is now omitted unless explicitly set by the user.async for model in client.models.list()) caused aTypeError: 'async for' requires an object with __aiter__ method, got coroutine. See issue #14574.IndexError.ValueError: Formatting field not found in record: 'dd.service'.v3.17.1: 3.17.1Compare Source
Estimated end-of-life date, accurate to within three months: 08-2026
See the support level definitions for more information.
Bug Fixes
CI Visibility: This fix resolves performance issue affecting coverage collection for Python 3.12+
LLM Observability
assessmentargument insubmit_evaluation().assessmentnow refers to whether the evaluation itself passes or fails according to your application, rather than the validity of the evaluation result.langchainintegration would incorrectly mark Azure OpenAI calls as duplicate llm operations even if theopenaiintegration was enabled. Thelangchainintegration will trace Azure OpenAI spans as workflow spans if there is an equivalent llm span from theopenaiintegration.v3.17.0: 3.17.0Compare Source
Estimated end-of-life date, accurate to within three months: 08-2026
See the support level definitions for more information.
Upgrade Notes
LLMObs.enableDeprecation Notes
LLMObs.submit_evaluation_for()has been deprecated and will be removed in a future version. It will be replaced withLLMObs.submit_evaluation()which will take the signature of the originalLLMObs.submit_evaluation_for()method in ddtrace version 4.0. Please useLLMObs.submit_evaluation()for submitting evaluations moving forward.To migrate:
LLMObs.submit_evaluation_for(...)users: rename toLLMObs.submit_evaluation(...)LLMObs.submit_evaluation_for(...)users: rename thespan_contextargument tospan, i.e.LLMObs.submit_evaluation(span_context={"span_id": ..., "trace_id": ...}, ...)toLLMObs.submit_evaluation(span={"span_id": ..., "trace_id": ...}, ...)Tracer.on_start_spanandTracer.deregister_on_start_spanare deprecated and will be removed in v4.0.0 with no planned replacement.New Features
asyncio.create_task().asyncioandfuturesintegrations are now enabled by default onLLMObs.enable(), which enables asynchronous context propagation for those libraries.LLMObs.submit_evaluation()andLLMObs.submit_evaluation_for()methods now accept areasoningargument to denote an explanation of the evaluation results.parse()methods used for structured outputs.LLMObs.submit_evaluation_for()method now accepts aassessmentargument to denotewhether or not the evaluation is valid or correct. Accepted values are either
"pass"or"fail".parse()methods for structured outputs onchat.completionsandresponsesendpoints (available in OpenAI SDK >= 1.92.0).track_user_idin the ATO SDK, which is equivalent totrack_userbut does not require the login, only the user id.Bug Fixes
requestswithurllib3\<2.wrapt<2until we can ensure full compatibility with the breaking changes.sumypackage installs files undertests/*insite-packages, and this would cause any modules undertests.*to be considered third-party.AttributeErrorcrash in certain configurations./v1/logspath is correctly added to prevent log payloads from being dropped by the Agent when usingOTEL_EXPORTER_OTLP_ENDPOINTconfiguration. Metrics and traces are unaffected.v3.16.4: 3.16.4Compare Source
Estimated end-of-life date, accurate to within three months: 08-2026
See the support level definitions for more information.
Bug Fixes
versionfield. The version field is now omitted unless explicitly set by the user.ValueError: Formatting field not found in record: 'dd.service'.v3.16.3: 3.16.3Compare Source
Estimated end-of-life date, accurate to within three months: 08-2026
See the support level definitions for more information.
Bug Fixes
langchainintegration would incorrectly mark Azure OpenAI calls as duplicate llm operations even if theopenaiintegration was enabled. Thelangchainintegration will trace Azure OpenAI spans as workflow spans if there is an equivalent llm span from theopenaiintegration.v3.16.2: 3.16.2Compare Source
Bug Fixes
wrapt<2until we can ensure full compatibility with the breaking changesv3.16.1: 3.16.1Compare Source
Estimated end-of-life date, accurate to within three months: 08-2026
See the support level definitions for more information.
Bug Fixes
sumypackage installs files undertests/*insite-packages, and this would cause any modules undertests.*to be considered third-party.AttributeErrorcrash in certain configurations.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.