0.60.0rc1
Pre-releasePrelude
In preparation for the upcoming v1.0.0 release, we recommend users enable deprecation warnings after having installed ddtrace>=0.59.0,<1.0.0. See the Upgrading and deprecation warnings section for further details.
New Features
-
Add environment variable
DD_TRACE_RAISE_DEPRECATIONWARNINGto raise library deprecation warnings as errors for those unable to configure warning filters otherwise. -
Add
Span.get_tagsandSpan.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 calling
jsonable_encoderwithin a given request. This does not provide visibility into how long it takes forResponse.render/json.dumps. -
HTTP connections for trace payloads to the agent will be reused when possible.
Deprecation Notes
Span.to_dictis deprecated and will be removed in v1.0.0.ddtrace.Tracer.logis deprecated. Uselogging.getLogger("ddtrace.tracer")instead.Tracer.write()is deprecated. Writing spans to the writer through the tracer is not supported.
Bug Fixes
- tracing/internal: fix encoding of propagated internal tags.
- Fix issue building
ddtracefrom source on macOS 12. - Fixes wrong numbers of memory allocation being reported in the memory profiler.
- pymongo: fix
write_commandbeing patched with the wrong method signature.
Other Notes
- tracing/internal: disable Datadog internal tag propagation