Releases: DataDog/dd-trace-py
Releases · DataDog/dd-trace-py
2.11.4
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.
2.10.7
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
) - openai: Fixes a bug where
asyncio.TimeoutError
s were not being propagated correctly from canceled OpenAI API requests. - profiling: Fixes endpoing profiling for stack v2 when
DD_PROFILING_STACK_V2_ENABLED
is set.
2.9.6
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
) - SSI: Fixes incorrect file permissions on lib-injection images.
- Code Security: Adds null pointer checks when creating new objects ids.
- profiling: Fixes endpoing profiling for stack v2 when
DD_PROFILING_STACK_V2_ENABLED
is set.
2.11.3
Bug Fixes
- ASM: Improves internal stability for the new fingerprinting feature.
2.11.2
New Features
- openai: Introduces
model
tag for openai integration metrics for consistency with the OpenAI SaaS Integration. It has the same value asopenai.request.model
.
Bug Fixes
- 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. - openai: Fixes a bug where
asyncio.TimeoutError
s were not being propagated correctly from canceled OpenAI API requests.
2.12.0rc2
Bug Fixes
- LLM Observability: This fix 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. - Fixed an issue with some module imports with native specs that don't support attribute assignments, resulting in a
TypeError
exception at runtime. - This fix resolves an issue where
ddtrace
package files were published with incorrect file attributes. - tracer: This fix 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.
2.11.1
Bug Fixes
- tracing(django): This fix resolves a bug where ddtrace was exhausting a Django stream response before returning it to user.
- Fixed an issue with some module imports with native specs that don't support attribute assignments, resulting in a
TypeError
exception at runtime. - internal: Fix
Already mutably borrowed
error by reverting back to pure-python rate limiter. - This fix resolves an issue where
ddtrace
package files were published with incorrect file attributes. - profiling: Fixes an issue where the profiler could erroneously try to load protobuf in autoinjected environments, where it is not available.
- Fixes an issue where crashtracking environment variables for Python were inconsistent with those used by other runtimes.
- profiling: Fixes endpoing profiling for stack v2, that is when
DD_PROFILING_STACK_V2_ENABLED
set.
2.12.0rc1
Deprecation Notes
- config: DD_TRACE_128_BIT_TRACEID_LOGGING_ENABLED is deprecated. Trace id logging format is now configured automatically.
- aioredis: Deprecates all modules in the
ddtrace.contrib.aioredis
package. Use attributes exposed inddtrace.contrib.aioredis.__all__
instead. - algoliasearch: Deprecates all modules in the
ddtrace.contrib.algoliasearch
package. Use attributes exposed inddtrace.contrib.algoliasearch.__all__
instead. - anthropic: Deprecates all modules in the
ddtrace.contrib.anthropic
package. Use attributes exposed inddtrace.contrib.anthropic.__all__
instead. - aredis: Deprecates all modules in the
ddtrace.contrib.aredis
package. Use attributes exposed inddtrace.contrib.aredis.__all__
instead. - asgi: Deprecates all modules in the
ddtrace.contrib.asgi
package. Use attributes exposed inddtrace.contrib.asgi.__all__
instead. - asyncpg: Deprecates all modules in the ddtrace.contrib.asyncpg package. Use attributes exposed in ddtrace.contrib.asyncpg.__all__ instead.
- aws_lambda: Deprecates all modules in the ddtrace.contrib.aws_lambda package. Use attributes exposed in ddtrace.contrib.aws_lambda.__all__ instead.
- boto: Deprecates all modules in the ddtrace.contrib.boto package. Use attributes exposed in ddtrace.contrib.boto.__all__ instead.
- botocore: Deprecates all modules in the ddtrace.contrib.botocore package. Use attributes exposed in ddtrace.contrib.botocore.__all__ instead.
- bottle: Deprecates all modules in the ddtrace.contrib.bottle package. Use attributes exposed in ddtrace.contrib.bottle.__all__ instead.
- cassandra: Deprecates all modules in the
ddtrace.contrib.cassandra
package. Use attributes exposed inddtrace.contrib.cassandra.__all__
instead. - celery: Deprecates all modules in the
ddtrace.contrib.celery
package. Use attributes exposed inddtrace.contrib.celery.__all__
instead. - cherrypy: Deprecates all modules in the
ddtrace.contrib.cherrypy
package. Use attributes exposed inddtrace.contrib.cherrypy.__all__
instead. - consul: Deprecates all modules in the
ddtrace.contrib.consul
package. Use attributes exposed inddtrace.contrib.consul.__all__
instead. - coverage: Deprecates all modules in the
ddtrace.contrib.coverage
package. Use attributes exposed inddtrace.contrib.coverage.__all__
instead. - django: Deprecates all modules in the
ddtrace.contrib.django
package. Use attributes exposed inddtrace.contrib.django.__all__
instead. - dogpile_cache: Deprecates all modules in the
ddtrace.contrib.dogpile_cache
package. Use attributes exposed inddtrace.contrib.dogpile_cache.__all__
instead. - dramatiq: Deprecates all modules in the
ddtrace.contrib.dramatiq
package. Use attributes exposed inddtrace.contrib.dramatiq.__all__
instead. - elasticsearch: Deprecates all modules in the
ddtrace.contrib.elasticsearch
package. Use attributes exposed inddtrace.contrib.elasticsearch.__all__
instead. - falcon: Deprecates all modules in the
ddtrace.contrib.falcon
package. Use attributes exposed inddtrace.contrib.falcon.__all__
instead. - fastapi: Deprecates all modules in the
ddtrace.contrib.fastapi
package. Use attributes exposed inddtrace.contrib.fastapi.__all__
instead. - flask: Deprecates all modules in the
ddtrace.contrib.flask
package. Use attributes exposed inddtrace.contrib.flask.__all__
instead. - flask_cache: Deprecates all modules in the
ddtrace.contrib.flask_cache
package. Use attributes exposed inddtrace.contrib.flask_cache.__all__
instead. - futures: Deprecates all modules in the
ddtrace.contrib.futures
package. Use attributes exposed inddtrace.contrib.futures.__all__
instead. - gevent: Deprecates all modules in the
ddtrace.contrib.gevent
package. Use attributes exposed inddtrace.contrib.gevent.__all__
instead. - graphql Deprecates all modules in the
ddtrace.contrib.graphql
package. Use attributes exposed inddtrace.contrib.graphql.__all__
instead. - grpc: Deprecates all modules in the
ddtrace.contrib.grpc
package. Use attributes exposed inddtrace.contrib.grpc.__all__
instead. - httplib: Deprecates all modules in the
ddtrace.contrib.httplib
package. Use attributes exposed inddtrace.contrib.httplib.__all__
instead. - httpx: Deprecates all modules in the
ddtrace.contrib.httpx
package. Use attributes exposed inddtrace.contrib.httpx.__all__
instead. - jinja2: Deprecates all modules in the
ddtrace.contrib.jinja2
package. Use attributes exposed inddtrace.contrib.jinja2.__all__
instead. - kafka: Deprecates all modules in the
ddtrace.contrib.kafka
package. Use attributes exposed inddtrace.contrib.kafka.__all__
instead. - kombu: Deprecates all modules in the
ddtrace.contrib.kombu
package. Use attributes exposed inddtrace.contrib.kombu.__all__
instead. - langchain: Deprecates all modules in the
ddtrace.contrib.langchain
package. Use attributes exposed inddtrace.contrib.langchain.__all__
instead. - logbook: Deprecates the
ddtrace.contrib.logbook
module. Useddtrace.contrib.langchain.logbook
instead. - logging: Deprecates the
ddtrace.contrib.logging
module. Useddtrace.contrib.langchain.logging
instead. - loguru: Deprecates the
ddtrace.contrib.loguru
module. Useddtrace.contrib.langchain.loguru
instead. - mako: Deprecates all modules in the
ddtrace.contrib.mako
package. Use attributes exposed inddtrace.contrib.mako.__all__
instead. - mariadb: Deprecates all modules in the
ddtrace.contrib.mariadb
package. Use attributes exposed inddtrace.contrib.mariadb.__all__
instead. - molten: Deprecates all modules in the
ddtrace.contrib.molten
package. Use attributes exposed inddtrace.contrib.molten.__all__
instead. - mongoengine: Deprecates all modules in the
ddtrace.contrib.mongoengine
package. Use attributes exposed inddtrace.contrib.mongoengine.__all__
instead. - mysql: Deprecates all modules in the
ddtrace.contrib.mysql
package. Use attributes exposed inddtrace.contrib.mysql.__all__
instead. - mysqldb: Deprecates all modules in the
ddtrace.contrib.mysqldb
package. Use attributes exposed inddtrace.contrib.mysqldb.__all__
instead. - openai: Deprecates all modules in the
ddtrace.contrib.openai
package. Use attributes exposed inddtrace.contrib.openai.__all__
instead. - psycopg: Deprecates all modules in the
ddtrace.contrib.psycopg
package. Use attributes exposed inddtrace.contrib.psycopg.__all__
instead. - pylibmc: Deprecates all modules in the
ddtrace.contrib.pylibmc
package. Use attributes exposed inddtrace.contrib.pylibmc.__all__
instead. - pymemcache: Deprecates all modules in the
ddtrace.contrib.pymemcache
package. Use attributes exposed inddtrace.contrib.pymemcache.__all__
instead. - pymongo: Deprecates all modules in the
ddtrace.contrib.pymongo
package. Use attributes exposed inddtrace.contrib.pymongo.__all__
instead. - pymysql: Deprecates all modules in the
ddtrace.contrib.pymysql
package. Use attributes exposed inddtrace.contrib.pymysql.__all__
instead. - pynamodb: Deprecates all modules in the
ddtrace.contrib.pynamodb
package. Use attributes exposed inddtrace.contrib.pynamodb.__all__
instead. - pyodbc: Deprecates all modules in the
ddtrace.contrib.pyodbc
package. Use attributes exposed inddtrace.contrib.pyodbc.__all__
instead. - pyramid: Deprecates all modules in the
ddtrace.contrib.pyramid
package. Use attributes exposed inddtrace.contrib.pyramid.__all__
instead. - redis: Deprecates all modules in the
ddtrace.contrib.redis
package. Use attributes exposed inddtrace.contrib.redis.__all__
instead. - rediscluster: Deprecates all modules in the
ddtrace.contrib.rediscluster
package. Use attributes exposed inddtrace.contrib.rediscluster.__all__
instead. - requests: Deprecates all modules in the
ddtrace.contrib.requests
package. Use attributes exposed inddtrace.contrib.requests.__all__
instead. - sanic: Deprecates all modules in the
ddtrace.contrib.sanic
package. Use attributes exposed inddtrace.contrib.sanic.__all__
instead. - snowflake: Deprecates the
ddtrace.contrib.snowflake
module. Use attributes exposed inddtrace.contrib.snowflake.__all__
instead. - sqlalchemy: Deprecates the
ddtrace.contrib.sqlalchemy
module. Use attributes exposed inddtrace.contrib.sqlalchemy.__all__
instead. - sqlite3: Deprecates the
ddtrace.contrib.sqlite3
module. Use attributes exposed inddtrace.contrib.sqlite3.__all__
instead. - starlette: Deprecates the
ddtrace.contrib.starlette
module. Use attributes exposed inddtrace.contrib.starlette.__all__
instead. - structlog: Deprecates the
ddtrace.contrib.structlog
module. Use attributes exposed inddtrace.contrib.structlog.__all__
instead. - subprocess: Deprecates the
ddtrace.contrib.subprocess
module. Use attributes exposed inddtrace.contrib.subprocess.__all__
instead. - tornado: Deprecates all modules in the
ddtrace.contrib.tornado
package. Use attributes exposed inddtrace.contrib.tornado.__all__
instead. - urllib: Deprecates the
ddtrace.contrib.urllib
module. Use attributes exposed inddtrace.contrib.urllib.__all__
instead. - urllib3: Deprecates the
ddtrace.contrib.urllib3
module. Use attributes exposed inddtrace.contrib.urllib3.__all__
instead. - vertica: Deprecates the
ddtrace.contrib.vertica
module. Use attributes exposed inddtrace.contrib.vertica.__all__
instead. - webbrowser: Deprecates the
ddtrace.contrib.webbrowser
module. Use attributes exposed inddtrace.contrib.webbrowser.__all__
instead. - wsgi: Deprecates the
ddtrace.contrib.wsgi
module. Use attributes exposed inddtrace.contrib.wsgi.__all__
instead. - yaaredis: Deprecates all modules in the
ddtrace.contrib.yaaredis
package. Use attributes exposed inddtrace.contrib.yaaredis.__all__
instead.
New Features
- database_clients: Adds
server.address
tag to all<database>.query
spans (ex: postgres.query). This tag st...
2.10.6
Bug Fixes
- tracing(django): Resolves a bug where
ddtrace
was exhausting a Django stream response before returning it to user. - internal: Fixes
Already mutably borrowed
error by reverting back to pure-python rate limiter.
2.10.5
Bug Fixes
- internal: Fix for
Already mutably borrowed
error when rate limiter is accessed across threads. - Code Security: add null pointer checks when creating new objects ids.
- profiling: turns on the new native exporter when DD_PROFILING_TIMELINE_ENABLED is set.