pypi ddtrace 0.59.0

latest releases: 2.9.0rc6, 2.9.0rc5, 2.9.0rc4...
2 years ago

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. Use settings={"FILTERS": ...} instead when calling tracer.configure.
  • ddtrace.constants.NUMERIC_TAGS is deprecated.
  • ddtrace.constants.LOG_SPAN_KEY is deprecated.
  • Pin.app is deprecated.
  • ddtrace.Span.set_meta is deprecated. Use ddtrace.Span.set_tag instead.
  • ddtrace.Span.set_metas is deprecated. Use ddtrace.Span.set_tags instead.
  • ddtrace.Span.metrics is deprecated. Use ddtrace.Span.get_metric and ddtrace.Span.set_metric instead.
  • ddtrace.Span.tracer is deprecated.
  • ddtrace.Tracer.log is deprecated. Use ddtrace.tracer.log instead.
  • ddtrace.Tracer.sampler is deprecated.
  • ddtrace.Tracer.priority_sampler is deprecated.
  • ddtrace.Tracer.tags is deprecated. Use the environment variable DD_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 for mypy.
  • flask: fix resource naming of request span when errors occur in middleware.
  • Fix issue when httpx service name is bytes.
  • 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

Don't miss a new ddtrace release

NewReleases is sending notifications on new releases.