Prelude
In preparation for the upcoming v1.0.0 release, we recommend users enable deprecation warnings after having installed ddtrace>=0.60.0,<1.0.0
. See the Upgrading and deprecation warnings section for further details.
New Features
-
asyncpg: add integration supporting v0.18.0 and above. See the docs for more information.
-
Add environment variable
DD_TRACE_RAISE_DEPRECATIONWARNING
to raise library deprecation warnings as errors for those unable to configure warning filters otherwise. -
Add
Span.get_tags
andSpan.get_metrics
. -
aiohttp: add client integration. This integration traces requests made using the aiohttp client and includes support for distributed tracing. See the documentation for more information.
-
aiohttp_jinja2: move into new integration. Formerly the aiohttp_jinja2 instrumentation was enabled using the aiohttp integration. Use
patch(aiohttp_jinja2=True)
instead ofpatch(aiohttp=True)
. To support legacy behaviorpatch(aiohttp=True)
will still enable aiohttp_jinja2. -
fastapi: add support for tracing
fastapi.routing.serialize_response
.
This will give an insight into how much time is spent callingjsonable_encoder
within a given request. This does not provide visibility into how long it takes forResponse.render
/json.dumps
.
Deprecation Notes
Span.to_dict
is deprecated and will be removed in v1.0.0.ddtrace.Tracer.log
is deprecated. Uselogging.getLogger("ddtrace.tracer")
instead.Tracer.write()
is deprecated. Writing spans to the writer through the tracer is not supported.
Bug Fixes
- botocore: fix incorrect context propagation message attribute types for SNS. This addresses Datadog/serverless-plugin-datadog#232
- aiohttp: fix issue causing
ddtrace.contrib.aiohttp_jinja2.patch
module to be imported instead of thepatch()
function. - Remove Pin.app deprecation warning from celery instrumentation.
- tracing/internal: fix encoding of propagated internal tags.
- Fix issue building
ddtrace
from source on macOS 12. - Fixes wrong numbers of memory allocation being reported in the memory profiler.
- pymongo: fix
write_command
being patched with the wrong method signature.
Other Notes
- tracing/internal: disable Datadog internal tag propagation