New Features
- 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. - asyncpg: add integration supporting v0.18.0 and above. See the docs for more information.
Upgrade Notes
ddtrace.constants.FILTERS_KEY
is removed.ddtrace.constants.NUMERIC_TAGS
is removed.ddtrace.constants.LOG_SPAN_KEY
is removed.ddtrace.Span.set_meta
is removed. Useddtrace.Span.set_tag
instead.ddtrace.Span.set_metas
is removed. Useddtrace.Span.set_tags
instead.Span.to_dict
is removed.
Bug Fixes
- 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.