-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency ddtrace to v2.16.0 #356
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/ddtrace-2.x-lockfile
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
August 8, 2024 19:24
42aa4af
to
1129e20
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.10.3
chore(deps): update dependency ddtrace to v2.10.4
Aug 8, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
August 13, 2024 17:22
1129e20
to
ac8e08b
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.10.4
chore(deps): update dependency ddtrace to v2.10.5
Aug 13, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
August 15, 2024 17:04
ac8e08b
to
e980eed
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.10.5
chore(deps): update dependency ddtrace to v2.10.6
Aug 15, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
August 19, 2024 20:32
e980eed
to
6e4f624
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.10.6
chore(deps): update dependency ddtrace to v2.11.0
Aug 19, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
August 20, 2024 21:13
6e4f624
to
40178da
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.11.0
chore(deps): update dependency ddtrace to v2.11.1
Aug 20, 2024
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.11.1
chore(deps): update dependency ddtrace to v2.11.2
Aug 28, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
August 28, 2024 20:15
40178da
to
a6a4778
Compare
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
September 4, 2024 22:47
a6a4778
to
5587ecd
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.11.2
chore(deps): update dependency ddtrace to v2.11.3
Sep 4, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
September 9, 2024 22:39
5587ecd
to
bb463f0
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.11.3
chore(deps): update dependency ddtrace to v2.12.0
Sep 9, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
September 10, 2024 19:19
bb463f0
to
47d249b
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.12.0
chore(deps): update dependency ddtrace to v2.12.1
Sep 10, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
September 11, 2024 21:56
47d249b
to
5fef2dd
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.12.1
chore(deps): update dependency ddtrace to v2.12.2
Sep 11, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
September 24, 2024 19:07
5fef2dd
to
19818a0
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.12.2
chore(deps): update dependency ddtrace to v2.13.0
Sep 24, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
September 26, 2024 22:45
19818a0
to
e3c33b9
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.13.0
chore(deps): update dependency ddtrace to v2.14.0
Sep 26, 2024
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.14.0
chore(deps): update dependency ddtrace to v2.14.1
Oct 1, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
2 times, most recently
from
October 3, 2024 00:12
2e1c83d
to
96452ab
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.14.1
chore(deps): update dependency ddtrace to v2.14.2
Oct 3, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
October 21, 2024 20:09
96452ab
to
506f8d7
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.14.2
chore(deps): update dependency ddtrace to v2.14.4
Oct 21, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
October 30, 2024 16:33
506f8d7
to
471b7a5
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.14.4
chore(deps): update dependency ddtrace to v2.15.0
Oct 30, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
November 1, 2024 15:54
471b7a5
to
88c0617
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.15.0
chore(deps): update dependency ddtrace to v2.15.1
Nov 1, 2024
renovate
bot
force-pushed
the
renovate/ddtrace-2.x-lockfile
branch
from
November 5, 2024 19:54
88c0617
to
5c55ea1
Compare
renovate
bot
changed the title
chore(deps): update dependency ddtrace to v2.15.1
chore(deps): update dependency ddtrace to v2.16.0
Nov 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
2.9.2
->2.16.0
Release Notes
DataDog/dd-trace-py (ddtrace)
v2.16.0
: 2.16.0Compare Source
New Features
LLM Observability
model_name
argument is now optional and will default tocustom
. This applies to both inline methods (e.g.LLMObs.llm()
) and function decorators (e.g.@llm
).submit_evaluation
method. For more information, see submitting evaluations with the SDK.Tracing
BatchWriteItem
spans. Table Primary Keys will need to be provided with theddtrace.config.botocore.dynamodb_primary_key_names_for_tables
option or theDD_BOTOCORE_DYNAMODB_TABLE_PRIMARY_KEYS
environment variable to correctly handle thePutRequest
items.TransactWriteItems
spans. Table Primary Keys will need to be provided with theddtrace.config.botocore.dynamodb_primary_key_names_for_tables
option or theDD_BOTOCORE_DYNAMODB_TABLE_PRIMARY_KEYS
environment variable to correctly handle thePut
items.ddtrace.config.botocore.add_span_pointers
option or theDD_BOTOCORE_ADD_SPAN_POINTERS
environment variable to control adding span pointers to some successful AWS API requests. This option is enabled by default.Bug Fixes
CI Visibility
CODEOWNERS
would incorrectly fail to discard line-level trailing comments (eg:@code/owner # my comment
would result in codeowners being parsed as@code/owner
,#
,my
, andcomment
)git
binary or.git
directory)Code Security
google.cloud.storage.batch
module would fail raising an ImportErrorDynamic Instrumentation
LLM Observability
LLMObs.annotate
.Profiling
DD_PROFILING_EXPORT_LIBDD_ENABLED
,DD_PROFILING_TIMELINE_ENABLED
orDD_PROFILING_STACK_V2_ENABLED
turned off live heap profiling.Span
. The mapping is populated and used whenDD_PROFILING_ENDPOINT_COLLECTION_ENABLED
andDD_PROFILING_STACK_V2_ENABLED
were set to enable grouping of profiles for endpoints.DD_PROFILING_STACK_V2_ENABLED
is set.TypeError
exception when it is given aSpan
withNone
span_type.Tracing
AGENT_CONFIG
remote configuration product.Other Changes
LLMObs.annotate
is called multiple times on the same span so that the latest value for a tag key overrides the previous value.v2.15.1
: 2.15.1Compare Source
Bug Fixes
LLM Observability: This fix resolves two issues with annotation contexts:
- annotations registered via annotation contexts were being applied globally. Annotations are now only applied to the current trace context and do not pollute to other threads & processes.
- annotations from nested annotation contexts were applied in a non-deterministic order. Annotations are now applied in the order they were registered.
CI Visibility: fixes a bug where
CODEOWNERS
would incorrectly fail to discard line-level trailing comments (eg:@code/owner # my comment
would result in codeowners being parsed as@code/owner
,#
,my
, andcomment
)CI Visibility: fixes unnecessary logging of an exception that would appear when trying to upload git metadata in an environment without functioning git (eg: missing
git
binary or.git
directory)dynamic instrumentation: Fixes an issue that prevented dynamic span tags probes from adding the requested tags to the requested span.
Code Security: This fix resolves an issue where importing the
google.cloud.storage.batch
module would fail raising an ImportErrorprofiling: fix a data race where span information associated with a thread was read and updated concurrently, leading to segfaults
profiling: resolves an issue where endpoint profiling for stack v2 throws
TypeError
exception when it is given aSpan
withNone
span_type.Other Changes
v2.15.0
Compare Source
New Features
LLM Observability
prompt
andname
arguments toLLMObs.annotation_context
to support setting an integration generated span's name andprompt
field. For more information on annotation contexts, see the docs here.stream
calls on LCEL chains, chat completion models, or completion models. Note that due to an upstream issue with thelangchain
library itself, streamed responses will not be tagged correctly based on the choice index when the underlying model is configured to returnn>1
choices. Please refer to this GitHub issue for more details.llm.stream
,chat_model.stream
, andchain.stream
) submit to LLM Observability.CI Visibility
test_session.name
tag to test events. The test session name can be set via theDD_TEST_SESSION_NAME
environment variable. IfDD_TEST_SESSION_NAME
is not specified, the test session name is set from the CI job id and the test command.Tracing
DD_CODE_ORIGIN_FOR_SPANS_ENABLED
environment variable totrue
.DeleteItem
spans.PutItem
spans. Table Primary Keys need to be provided with theddtrace.config.botocore.dynamodb_primary_key_names_for_tables
option or theDD_BOTOCORE_DYNAMODB_TABLE_PRIMARY_KEYS
environment variable.UpdateItem
spans.CompleteMultipartUpload
spans.DD_TRACE_HTTP_CLIENT_ERROR_STATUSES
environment variable to configure the list of HTTP status codes that should be considered errors when instrumenting HTTP servers.Deprecation Notes
DD_TRACE_HTTP_CLIENT_TAG_QUERY_STRING
instead ofddtrace.config.http_tag_query_string
DD_TRACE_HEADER_TAGS
instead ofddtrace.config.trace_http_header_tags
DD_TRACE_REPORT_HOSTNAME
instead ofddtrace.config.report_hostname
DD_TRACE_HEALTH_METRICS_ENABLED
instead ofddtrace.config.health_metrics_enabled
DD_TRACE_ANALYTICS_ENABLED
instead ofddtrace.config.analytics_enabled
DD_TRACE_CLIENT_IP_HEADER
instead ofddtrace.config.client_ip_header
DD_TRACE_CLIENT_IP_ENABLED
instead ofddtrace.config.retrieve_client_ip
DD_TRACE_PROPAGATION_HTTP_BAGGAGE_ENABLED
instead ofddtrace.config.propagation_http_baggage_enabled
DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP
to an empty string instead of settingddtrace.config.global_query_string_obfuscation_disabled
to True (default value is False)DD_TRACE_METHODS
instead ofddtrace.config.trace_methods
DD_CIVISIBILITY_LOG_LEVEL
instead ofddtrace.config.ci_visibility_log_level
DD_TRACE_SAMPLE_RATE
environment variable. It will be removed in 3.0.0. UseDD_TRACE_SAMPLING_RULES
to configure sampling rates instead.DD_TRACE_API_VERSION=v0.3
is deprecated. Usev0.4
orv0.5
instead.Bug Fixes
Code security
_DD_IAST_DEBUG
environment variable is enabled or not.re.finditer
.LLM Observability
LLMObs.enable()
did not patch google_generativeai library.modelId
when using cross-region inference.Profiling
DD_PROFILING_STACK_V2_ENABLED
is set.DD_PROFILING_EXPORT_LIBDD_ENABLED
orDD_PROFILING_TIMELINE_ENABLED
.DD_PROFILING_EXPORT_LIBDD_ENABLED
,DD_PROFILING_STACK_V2_ENABLED
, orDD_PROFILING_TIMELINE_ENABLED
.DD_PROFILING_STACK_V2_ENABLED
.Tracing
resource_name
.AGENT_CONFIG
remote configuration product.celery.apply
spans didn't close if theafter_task_publish
ortask_postrun
signals didn't get sent when usingapply_async
, which can happen if there is an internal exception during the handling of the task. This update also marks the span as an error if an exception occurs.celery.apply
spans using task_protocol 1 didn't close by improving the check for the task id in the body.http.url
span tag contains the full query string whenDD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP
is set to an empty string.DD_TRACE_RATE_LIMIT
environment variable is only applied to spans for which tracer sampling is configured. For spans not matching sampling rules default rate limits should be applied by the Datadog Agent.Other
Other Changes
v2.14.5
: 2.14.5Compare Source
Bug Fixes
CODEOWNERS
would incorrectly fail to discard line-level trailing comments (eg:@code/owner # my comment
would result in codeowners being parsed as@code/owner
,#
,my
, andcomment
)git
binary or.git
directory)google.cloud.storage.batch
module would fail raising an ImportErrorTypeError
exception when it is given aSpan
withNone
span_type.v2.14.4
Compare Source
Bug Fixes
re.finditer
.modelId
when using cross-region inference.AGENT_CONFIG
remote configuration product.v2.14.2
Compare Source
Bug Fixes
Tracing
celery.apply
spans didn't close if theafter_task_publish
ortask_postrun
signals didn't get sent when usingapply_async
, which can happen if there is an internal exception during the handling of the task. This update also marks the span as an error if an exception occurs.celery.apply
spans using task_protocol 1 didn't close by improving the check for the task id in the body.Profiling
DD_PROFILING_EXPORT_LIBDD_ENABLED
,DD_PROFILING_STACK_V2_ENABLED
, orDD_PROFILING_TIMELINE_ENABLED
.DD_PROFILING_STACK_V2_ENABLED
.v2.14.1
Compare Source
New Features
_DD_IAST_DEBUG
environment variable is enabled or not.Bug Fixes
DD_PROFILING_EXPORT_LIBDD_ENABLED
orDD_PROFILING_TIMELINE_ENABLED
.v2.14.0
Compare Source
Deprecation Notes
DD_TRACE_SPAN_AGGREGATOR_RLOCK
environment variable. It will be removed in v3.0.0.DD_HTTP_CLIENT_TAG_QUERY_STRING
configuration is deprecated and will be removed in v3.0.0. UseDD_TRACE_HTTP_CLIENT_TAG_QUERY_STRING
instead.New Features
DSM
LLM Observability
model_provider
values. Span names are now prefixed with the OpenAI client name (possible values:OpenAI/AzureOpenAI
) instead of the defaultopenai
prefix to better differentiate whether the request was made to Azure OpenAI or OpenAI. Themodel_provider
field also now corresponds toopenai
orazure_openai
based on the OpenAI client.stream_options={"include_usage": True}
option is set on the completion or chat completion call.LLMObs.annotation_context()
context manager method, which allows modifying the tags of integration generated LLM Observability spans created while the context manager is active.LLMObs.annotate(prompt={...})
for LLM span kinds. For more information on prompt annotations, see the docs.generate_content
calls.See the docs for more information.
openai.request.client
tag with the possible valuesOpenAI/AzureOpenAI
to help differentiate whether the request was made to Azure OpenAI or OpenAI.stream_options={"include_usage": True}
option is set on the completion or chat completion call.Profiling
asyncio.Lock
usages withwith
context managers.Other
Bug Fixes
Code Security (ASM)
AttributeError
exceptions were being caught, interfering with the proper application cycle.LLM Observability
LLMObs.enable(agentless_enabled=True)
or settingDD_LLMOBS_AGENTLESS_ENABLED=1
.LLMObs.annotate()
method where non-JSON serializable arguments were discarded entirely. Now, theLLMObs.annotate()
method safely handles non-JSON-serializable arguments by defaulting to a placeholder text.TypeError
in the OpenAI, LangChain, Bedrock, and Anthropic integrations.TypeError
. The Anthropic integration now safely tags non-JSON serializable arguments with a default placeholder text.TypeError
. The LangChain integration now safely tags non-JSON serializable arguments with a default placeholder text.Other
pymongo.MongoClient
can be patch after pymongo is importedv2.13.2
Compare Source
Bug Fixes
re.finditer
.modelId
when using cross-region inference.AGENT_CONFIG
remote configuration product.v2.13.1
Compare Source
Bug Fixes
Code Security (IAST)
_DD_IAST_DEBUG
environment variable is enabled or not.Profiling:
DD_PROFILING_STACK_V2_ENABLED
is set.DD_PROFILING_EXPORT_LIBDD_ENABLED
orDD_PROFILING_TIMELINE_ENABLED
.DD_PROFILING_EXPORT_LIBDD_ENABLED
,DD_PROFILING_STACK_V2_ENABLED
, orDD_PROFILING_TIMELINE_ENABLED
.DD_PROFILING_STACK_V2_ENABLED
.Tracing
celery.apply
spans didn't close if theafter_task_publish
ortask_postrun
signals didn't get sent when usingapply_async
, which can happen if there is an internal exception during the handling of the task. This update also marks the span as an error if an exception occurs.celery.apply
spans using task_protocol 1 didn't close by improving the check for the task id in the body.v2.13.0
: 2.13.0Compare Source
New Features
set_exc_info
.similarity_search
spans to LLM Observability as retrieval spans.ml_app
andtimestamp_ms
fields inLLMObs.submit_evaluation
model
tag for openai integration metrics for consistency with the OpenAI SaaS Integration. It has the same value asopenai.request.model
.Deprecation Notes
__all__
attribute.priority_sampling
argument inddtrace.tracer.Tracer.configure(...)
.Bug Fixes
attrs
installed by default on some Ubuntu installations was treated as incompatible with library injectionTypeError
. The Anthropic integration now safely tags non-JSON serializable arguments with a default placeholder text..git
was incorrectly being stripped from repository URLs when extracting service names, resulting ing
,i
, ort
being removed (eg:test-environment.git
incorrectly becomingtest-environmen
)start_execution
commands. This re-enables distributed tracing when a Python service invokes a properly instrumented Step Function.celery
orgunicorn
workers. The LLM Observability writer thread now automatically restarts when a forked process is detected.TypeError
exception at runtime.X-Datadog-Trace-Count
payload header.ddtrace
package files were published with incorrect file attributes.session_id
was being defaulted totrace_id
, which was causing unexpected UI behavior.asyncio.TimeoutError
s were not being propagated correctly from canceled OpenAI API requests.DD_PROFILING_TAGS
andDD_TAGS
to the libdatadog exporter, a new exporter codepath which is enabled when either one of the following is set,DD_PROFILING_STACK_V2_ENABLED
,DD_PROFILING_EXPORT_LIBDD_ENABLED
, orDD_PROFILING_TIMELINE_ENABLED
or dd-trace-py is running in an injected environment.Other Changes
DD_PRIORITY_SAMPLING
configuration option. This option is not used in anyddtrace>=2.0
releases.v2.12.4
Compare Source
Bug Fixes
AGENT_CONFIG
remote configuration product.v2.12.3
Compare Source
Bug Fixes
Code Security
Initializer
object is always reset and freed before the Python runtime.LLM Observability
LLMObs.enable(agentless_enabled=True)
or settingDD_LLMOBS_AGENTLESS_ENABLED=1
.LLMObs.annotate()
method where non-JSON serializable arguments were discarded entirely. Now, theLLMObs.annotate()
method safely handles non-JSON-serializable arguments by defaulting to a placeholder text.TypeError
in the OpenAI, LangChain, Bedrock, and Anthropic integrations.TypeError
. The Anthropic integration now safely tags non-JSON serializable arguments with a default placeholder text.TypeError
. The LangChain integration now safely tags non-JSON serializable arguments with a default placeholder text.Profiling
DD_PROFILING_STACK_V2_ENABLED
is set.DD_PROFILING_EXPORT_LIBDD_ENABLED
orDD_PROFILING_TIMELINE_ENABLED
.DD_PROFILING_EXPORT_LIBDD_ENABLED
,DD_PROFILING_STACK_V2_ENABLED
, orDD_PROFILING_TIMELINE_ENABLED
.DD_PROFILING_STACK_V2_ENABLED
.Tracing
celery.apply
spans didn't close if theafter_task_publish
ortask_postrun
signals didn't get sent when usingapply_async
, which can happen if there is an internal exception during the handling of the task. This update also marks the span as an error if an exception occurs.celery.apply
spans using task_protocol 1 didn't close by improving the check for the task id in the body.TypeError
exception would be raised if the first message'stopic()
returnedNone
during consumption.v2.12.2
: 2.12.2Compare Source
Bug Fixes
attrs
installed by default on some Ubuntu installations was treated as incompatible with library injectionAttributeError
exceptions were being caught, interfering with the proper application cycle.v2.12.1
: 2.12.1Compare Source
Bug Fixes
v2.12.0
Compare Source
New Features
model
tag for openai integration metrics for consistency with the OpenAI SaaS Integration. It has the same value asopenai.request.model
.server.address
tag to all<database>.query
spans (ex: postgres.query). This tag stores the name of the database host.ddtrace.trace.Context
to the public api. This class can now be used to propagate context across execution boundaries (ex: threads).Deprecation Notes
DD_TRACE_128_BIT_TRACEID_LOGGING_ENABLED
is deprecated. Trace id logging format is now configured automatically.ddtrace.contrib.[integration_name]
package. Use attributes exposed inddtrace.contrib.[integration_name].__all__
instead. The following are impacted:aioredis
,algoliasearch
.anthropic
,aredis
,asgi
,asyncpg
,aws_lambda
,boto
,botocore
,bottle
,cassandra
,celery
,cherrypy
,consul
,coverage
,django
,dogpile_cache
,dramatiq
,elasticsearch
,falcon
,fastapi
,flask
,flask_cache
,futures
,gevent
,graphql
,grpc
,httplib
,httpx
,jinja2
,kafka
,kombu
,langchain
,logbook
,logging
,loguru
,mako
,mariadb
,molten
,mongoengine
,mysql
,mysqldb
,openai
,psycopg
,pylibmc
,pymemcache
,pymongo
,pymysql
,pynamodb
,pyodbc
,pyramid
,redis
,rediscluster
,requests
,sanic
,snowflake
,sqlalchemy
,sqlite3
,starlette
,structlog
,subprocess
,tornado
,urllib
,urllib3
,vertica
,webbrowser
,wsgi
,yaaredis
Bug Fixes
CI Visibility: Resolves an issue where exceptions other than timeouts and connection errors raised while fetching the list of skippable tests for ITR were not being handled correctly and caused the tracer to crash.
CI Visibility: Fixes a bug where
.git
was incorrectly being stripped from repository URLs when extracting service names, resulting ing
,i
, ort
being removed (eg:test-environment.git
incorrectly becomingtest-environmen
)LLM Observability: Resolves an issue where custom trace filters were being overwritten in forked processes.
tracing: Fixes a side-effect issue with module import callbacks that could cause a runtime exception.
LLM Observability: Resolves an issue where
session_id
was being defaulted totrace_id
, which was causing unexpected UI behavior.LLM Observability: Resolves an issue where LLM Observability spans were not being submitted in forked processes, such as when using
celery
orgunicorn
workers. The LLM Observability writer thread now automatically restarts when a forked process is detected.tracing: Fixes an issue with some module imports with native specs that don't support attribute assignments, resulting in a
TypeError
exception at runtime.tracing: Resolves an issue where
ddtrace
package files were published with incorrect file attributes.tracing: Resolves an issue where django db instrumentation could fail.
openai: Fixes a bug where
asyncio.TimeoutError
s were not being propagated correctly from canceled OpenAI API requests.aiobotocore: Fixes an issue where the
_make_api_call
arguments were not captured correctly when using keyword arguments.tracing(django): Resolves a bug where ddtrace was exhausting a Django stream response before returning it to user.
LLM Observability: Fixes an issue in the OpenAI integration where integration metrics would still be submitted even if
LLMObs.enable(agentless_enabled=True)
was set.internal: Fixes the
Already mutably borrowed
error when rate limiter is accessed across threads.internal: Fixes the
Already mutably borrowed
error by reverting back to pure-python rate limiter.Code Security: Adds null pointer checks when creating new objects ids.
profiling: Fixes an issue where the profiler could erroneously try to load protobuf in autoinjected environments, where it is not available.
crashtracking: Fixes an issue where crashtracking environment variables for Python were inconsistent with those used by other runtimes.
profiling: Fixes endpoint profiling for stack v2 when
DD_PROFILING_STACK_V2_ENABLED
is set.profiling: Turns on the new native exporter when
DD_PROFILING_TIMELINE_ENABLED=True
is set.v2.11.8
Compare Source
Bug Fixes
AGENT_CONFIG
remote configuration product.v2.11.7
Compare Source
Bug Fixes
LLMObs.enable(agentless_enabled=True)
or settingDD_LLMOBS_AGENTLESS_ENABLED=1
.Initializer
object is always reset and freed before the Python runtime.DD_PROFILING_EXPORT_LIBDD_ENABLED
orDD_PROFILING_TIMELINE_ENABLED
.v2.11.6
Compare Source
Bug Fixes
attrs
installed by default on some Ubuntu installations was treated as incompatible with library injectionAttributeError
exceptions were being caught, interfering with the proper application cycle.v2.11.5
Compare Source
Bug Fixes
v2.11.4
Compare Source
Bug Fixes
.git
was incorrectly being stripped from repository URLs when extracting service names, resulting ing
,i
, ort
being removed (eg:test-environment.git
incorrectly becomingtest-environmen
)session_id
was being defaulted totrace_id
which was causing unexpected UI behavior.v2.11.3
: 2.11.3Compare Source
Bug Fixes
v2.11.2
: 2.11.2Compare Source
New Features
model
tag for openai integration metrics for consistency with the OpenAI SaaS Integration. It has the same value asopenai.request.model
.Bug Fixes
celery
orgunicorn
workers. The LLM Observability writer thread now automatically restarts when a forked process is detected.asyncio.TimeoutError
s were not being propagated correctly from canceled OpenAI API requests.v2.11.1
Compare Source
Bug Fixes
TypeError
exception at runtime.Already mutably borrowed
error by reverting back to pure-python rate limiter.ddtrace
package files were published with incorrect file attributes.DD_PROFILING_STACK_V2_ENABLED
set.v2.11.0
Compare Source
New Features
ASM: This update introduces new Auto User Events support.
ASM’s [Account TakeOver (ATO) detection](https://docs.datadoghq.com/security/account_takeover_protection) is now automatically monitoring [all compatible user authentication frameworks](https://docs.datadoghq.com/security/application_security/enabling/compatibility/) to detect attempted or leaked user credentials during an ATO campaign.
To do so, the monitoring of the user activity is extended to now collect all forms of user IDs, including non-numerical forms such as usernames or emails. This is configurable with 3 different working modes: identification to send the user IDs in clear text; anonymization to send anonymized user IDs; or disabled to completely turn off any type of user ID collection (which leads to the disablement of the ATO detection).
The default collection mode being used is identification and this is configurable in your remote service configuration settings in the [service catalog]( https://app.datadog.com/security/appsec/inventory/services?tab=capabilities) (clicking on a service), or with the service environment variable DD_APPSEC_AUTO_USER_INSTRUMENTATION_MODE.
You can read more [here](https://docs.datadoghq.com/security/account_takeover_protection).
New local configuration environment variables include:
Additionally, an optional argument for the public API track_user_login_success_event and `track_user_login_failure_event`: login_events_mode="auto". This allows manual instrumentation to follow remote configuration settings, enabling or disabling manual instrumentation with a single remote action on the Datadog UI.
Also prevents non numerical user ids to be reported by default without user instrumentation in Django.
Anthropic: Adds support for tracing message calls using tools.
LLM Observability: Adds support for tracing Anthropic messages using tool calls.
botocore: Adds support for overriding the default service name in botocore by either setting the environment variable
DD_BOTOCORE_SERVICE
or configuring it via ddtrace.config.botocore["service"].azure: Removes the restrictions on the tracer to only run the mini-agent on the consumption plan. The mini-agent now runs regardless of the hosting plan
ASM: Adds Threat Monitoring support for gRPC.
Code Security: add propagation for GRPC server sources.
LLM Observability: This introduces improved support for capturing tool call responses from the OpenAI and Anthropic integrations.
LLM Observability: This introduces the agentless mode configuration for LLM Observability. To enable agentless mode, set the environment variable
DD_LLMOBS_AGENTLESS_ENABLED=1
, or use the enable optionLLMObs.enable(agentless_enabled=True)
.LLM Observability: Function decorators now support tracing asynchronous functions.
LLM Observability: This introduces automatic input/output annotation for task/tool/workflow/agent/retrieval spans traced by function decorators. Note that manual annotations for input/output values will override automatic annotations.
LLM Observability: The OpenAI integration now submits embedding spans to LLM Observability.
LLM Observability: All OpenAI model parameters specified in a completion/chat completion request are now captured.
LLM Observability: This changes OpenAI-generated LLM Observability span names from
openai.request
toopenai.createCompletion
,openai.createChatCompletion
, andopenai.createEmbedding
for completions, chat completions, and embeddings spans, respectively.LLM Observability: This introduces the agent proxy mode for LLM Observability. By default, LLM Observability spans will be sent to the Datadog agent and then forwarded to LLM Observability. To continue submitting data directly to LLM Observability without the Datadog agent, set
DD_LLMOBS_AGENTLESS_ENABLED=1
or set programmatically usingLLMObs.enable(agentless_enabled=True)
.LLM Observability: The Langchain integration now submits embedding spans to LLM Observability.
LLM Observability: The
LLMObs.annotate()
method now replaces non-JSON serializable values with a placeholder string[Unserializable object: <string representation of object>]
instead of rejecting the annotation entirely.pylibmc: adds traces for memcached add command
ASM: This introduces fingerprinting with libddwaf 1.19.1
Database Monitoring: Adds Database Monitoring (DBM) trace propagation for postgres databases used through Django.
langchain: Tags tool calls on chat completions.
LLM Observability: Adds retry logic to the agentless span writer to mitigate potential networking issues, like timeouts or dropped connections.
ASM: This introduces Command Injection support for Exploit Prevention on os.system only.
ASM: This introduces suspicious attacker blocking with libddwaf 1.19.1
Upgrade Notes
Deprecation Notes
patch()
andunpatch()
are deprecated and will be removed in version 3.0.0.patch()
andunpatch()
are deprecated and will be removed in version 3.0.0.patch()
andunpatch()
are deprecated and will be removed in version 3.0.0.patch()
andunpatch()
are deprecated and will be removed in version 3.0.0.patch()
andunpatch()
are deprecated and will be removed in version 3.0.0.patch()
andunpatch()
are deprecated and will be removed in version 3.0.0.patch()
andunpatch()
are deprecated and will be removed in version 3.0.0.patch()
andunpatch()
are deprecated and will be removed in version 3.0.0.patch()
andunpatch()
are deprecated and will be removed in version 3.0.0.patch()
andunpatch()
are deprecated and will be removed in version 3.0.0.DD_EXCEPTION_DEBUGGING_ENABLED
environment variable has been deprecated in favor ofDD_EXCEPTION_REPLAY_ENABLED
. The old environment variable will be removed in a future major release.Bug Fixes
LLM Observability: Fixes an issue in the OpenAI integration where integration metrics would still be submitted even if
LLMObs.enable(agentless_enabled=True)
was set.Code Security: add null pointer checks when creating new objects ids.
Code Security: add encodings.idna to the IAST patching denylist to avoid problems with gevent.
Code Security: add the boto package to the IAST patching denylist.
Code Security: fix two small memory leaks with Python 3.11 and 3.12.
CI Visibility: Fixes an issue where the pytest plugin would crash if the git binary was absent
CI Visibility: fixes incorrect URL for telemetry intake in EU that was causing missing telemetry data and SSL error log messages.
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.
futures: Fixes inconsistent behavior with
concurrent.futures.ThreadPoolExecutor
context propagation by passing the current trace context instead of the currently active span to tasks. This prevents edge cases of disconnected spans when the task executes after the parent span has finished.kafka: Fixes
ArgumentError
raised when injecting span context into non-existent Kafka message headers.botocore: Fixes Botocore Kinesis span parenting to use active trace context if a propagated child context is not found instead of empty context.
langchain: This fix resolves an issue where the wrong langchain class name was being used to check for Pinecone vectorstore instances.
LLM Observability: This 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: This fix resolves an issue where the OpenAI, Anthropic, 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.opentelemetry: Resolves circular imports raised by the OpenTelemetry API when the
ddcontextvars_context
entrypoint is loaded. This resolves an incompatibility introduced inopentelemetry-api==1.25.0
.opentelemetry: Resolves an issue where the
get_tracer
function would raise aTypeError
when called with theattribute
argument. This resolves an incompatibility introduced inopentelemetry-api==1.26.0
.psycopg: Ensures traced async cursors return an asynchronous iterator object.
redis: This fix resolves an issue in the redis exception handling where an UnboundLocalError was raised instead of the expected BaseException.
ASM: This fix resolves an issue where the requests integration would not propagate when apm is opted out (i.
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.