Releases: DataDog/dd-trace-py
1.3.0rc2
1.2.3
Bug Fixes
- mypy: Avoid parsing redis asyncio files when type checking Python 2
- flask_caching: fix redis tagging after the v2.0 release.
- redis: create default Pin on asyncio client. Not having a Pin was resulting in no traces being produced for the async redis client.
1.3.0rc1
New Features
- internal: Add support for Datadog trace tag propagation
- django: added
DD_DJANGO_INSTRUMENT_TEMPLATES=falseto allow tracing of Django template rendering. - internal: Add sampling mechanism trace tag
- Add environment variables to write
ddtracelogs to a file withDD_TRACE_LOG_FILE,DD_TRACE_LOG_FILE_LEVEL, andDD_TRACE_FILE_SIZE_BYTES - Adds pytest-bdd integration to show more details in CI Visibility product.
Bug Fixes
- starlette: Add back removed
aggregate_resourcesfeature. - fastapi: Add back removed
aggregate_resourcesfeature. - aiomysql: fix
AttributeError: __aenter__when using cursors as context managers. - asgi, starlette, fastapi: Exclude background tasks duration from web request spans.
- asgi: set the
http.urltag using the hostname in the request header before defaulting to the hostname of the asgi server. - mypy: Avoid parsing redis asyncio files when type checking Python 2
- starlette: Add back removed
ddtrace.contrib.starlette.get_resourceandddtrace.contrib.starlette.span_modifier. - fastapi: Add back removed
ddtrace.contrib.fastapi.span_modifier. - internal: fix exception raised for invalid values of
DD_TRACE_X_DATADOG_TAGS_MAX_LENGTH. - flask_caching: fix redis tagging after the v2.0 release.
- redis: create default Pin on asyncio client. Not having a Pin was resulting in no traces being produced for the async redis client.
Other Notes
- perf: don't encode default parent_id value.
- profiling: add support for protobuf >=4.0.
1.2.2
Bug Fixes
- aiomysql: fix
AttributeError: __aenter__when using cursors as context managers.
1.2.1
Bug Fixes
- starlette: Add back removed
aggregate_resourcesfeature. - fastapi: Add back removed
aggregate_resourcesfeature. - asgi, starlette, fastapi: Exclude background tasks duration from web request spans.
- starlette: Add back removed
ddtrace.contrib.starlette.get_resourceandddtrace.contrib.starlette.span_modifier. - fastapi: Add back removed
ddtrace.contrib.fastapi.span_modifier.
1.2.1rc1
1.2.0
New Features
- Add tracing support for
aiomysql>=0.1.0. - Add support for
grpc.aio. - botocore: allow defining error status codes for specific API operations.
See our botocore document for more information on how to enable this feature. - ciapp: detect code owners of PyTest tests
- The memory profile collector can now entirely disabled with the
DD_PROFILING_MEMORY_ENABLEDenvironment variable. - psycopg2: add option to enable tracing
psycopg2.connectmethod.
See our psycopg2 documentation for more information. - Add asyncio support of redis ≥ 4.2.0
Upgrade Notes
- The profiler
asyncio_loop_policyattribute has been renamed toasyncio_loop_policy_classto accept a user-defined class. This guarantees the same asyncio loop policy class can be used process children.
Bug Fixes
- Fixes deprecation warning for
asyncio.coroutinedecorator. - internal: normalize header names in ASM
- profiling: implement
__aenter__and__aexit__methods onasyncio.Lockwrapper. - tracing: fix issue with
ddtrace-runhaving the wrong priority order of tracer host/port/url env variable configuration. - django,redis: fix unicode decode error when using unicode cache key on Python 2.7
- fastapi/starlette: when using sub-apps, formerly a call to
/sub-app/hello/{name}would give a resource name of/sub-app. Now the full path/sub-app/hello/{name}is used for the resource name. - sanic: Don't send non-500s error traces.
- pin protobuf to version
>=3,<4due to incompatibility with version4.21. - Fixes a performance issue with the profiler when used in an asyncio application.
- The profiler now copy all user-provided attributes on fork.
- pytest: Add note for disabling ddtrace plugin as workaround for side-effects
- Set required header to indicate top level span computation is done in the client to the Datadog agent. This fixes an issue where spans were erroneously being marked as top level when partial flushing or in certain asynchronous applications.
The impact of this bug is the unintended computation of stats for non-top level spans.
Other Notes
- The default number of events kept by the profiler has been reduced to decreased CPU and memory overhead.
- profiling: add support for protobuf >=4.0.
1.2.0rc3
Other
- Internal changes
1.2.0rc2
Other Notes
- profiling: add support for protobuf >=4.0.
1.2.0rc1
New Features
-
Add tracing support for
aiomysql>=0.1.0. -
Add support for
grpc.aio. -
botocore: allow defining error status codes for specific API operations.
See our botocore document for more information on how to enable this feature.
-
ciapp: detect code owners of PyTest tests
-
The memory profile collector can now entirely disabled with the
DD_PROFILING_MEMORY_ENABLEDenvironment variable. -
psycopg2: add option to enable tracing
psycopg2.connectmethod.See our psycopg2 documentation for more information.
-
Add asyncio support of redis ≥ 4.2.0
Upgrade Notes
- The profiler
asyncio_loop_policyattribute has been renamed toasyncio_loop_policy_classto accept a user-defined class. This guarantees the same asyncio loop policy class can be used process children.
Bug Fixes
-
Fixes deprecation warning for
asyncio.coroutinedecorator. -
internal: normalize header names in ASM
-
profiling: implement
__aenter__and__aexit__methods onasyncio.Lockwrapper. -
tracing: fix issue with
ddtrace-runhaving the wrong priority order of tracer host/port/url env variable configuration. -
django,redis: fix unicode decode error when using unicode cache key on Python 2.7
-
fastapi/starlette: when using sub-apps, formerly a call to
/sub-app/hello/{name}would give a resource name of/sub-app. Now the full path/sub-app/hello/{name}is used for the resource name. -
sanic: Don't send non-500s error traces.
-
pin protobuf to version
>=3,<4due to incompatibility with version4.21. -
Fixes a performance issue with the profiler when used in an asyncio application.
-
The profiler now copy all user-provided attributes on fork.
-
pytest: Add note for disabling ddtrace plugin as workaround for side-effects
-
Set required header to indicate top level span computation is done in the client to the Datadog agent. This fixes an issue where spans were erroneously being marked as top level when partial flushing or in certain asynchronous applications.
The impact of this bug is the unintended computation of stats for non-top level spans.
Other Notes
- The default number of events kept by the profiler has been reduced to decreased CPU and memory overhead.