Release Notes
Prelude
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_DEPRECATIONWARNING
to raise library deprecation warnings as errors for those unable to configure warning filters otherwise. - The profiler now reports asyncio tasks as part as the task field in profiles. This is enabled by default by replacing the default asyncio loop policy. CPU time, wall time and threading lock times are supported.
- Add tracing support for
sanic>=21.9.0
.
Deprecation Notes
Tracer.write()
is deprecated. Writing spans to the writer through the tracer is not supported.ddtrace.constants.FILTERS_KEY
is deprecated. Usesettings={"FILTERS": ...}
instead when callingtracer.configure
.ddtrace.constants.NUMERIC_TAGS
is deprecated.ddtrace.constants.LOG_SPAN_KEY
is deprecated.Pin.app
is deprecated.ddtrace.Span.set_meta
is deprecated. Useddtrace.Span.set_tag
instead.ddtrace.Span.set_metas
is deprecated. Useddtrace.Span.set_tags
instead.ddtrace.Span.metrics
is deprecated. Useddtrace.Span.get_metric
andddtrace.Span.set_metric
instead.ddtrace.Span.tracer
is deprecated.ddtrace.Tracer.log
is deprecated. Useddtrace.tracer.log
instead.ddtrace.Tracer.sampler
is deprecated.ddtrace.Tracer.priority_sampler
is deprecated.ddtrace.Tracer.tags
is deprecated. Use the environment variableDD_TAGS<dd-tags>
to set the global tags instead.
Bug Fixes
- tracing/internal: fix encoding of propagated internal tags.
- Fix internal import of deprecated
ddtrace.utils
module. - Set correct service in logs correlation attributes when a span override the service.
- Fixes import path to not reference
__init__
. This could otherwise be a problem formypy
. - flask: fix resource naming of request span when errors occur in middleware.
- Fix issue when
httpx
service name isbytes
. - Fixes build issues on older MacOS versions by updating
libddwaf
to 1.0.18 - pytest: fix unsafe access to xfail reason.
Other Notes
- tracing/internal: disable Datadog internal tag propagation