github DataDog/dd-trace-py v2.5.0rc1
2.5.0rc1

latest releases: v2.16.2, v2.17.0rc1, v2.16.1...
pre-release10 months ago

New Features

  • aiohttp: add split_by_domain config to split service name by domain
  • CI Visibility: Adds code coverage lines covered tag for pytest and unittest.
  • aiohttp: Adds http.route tag to aiohttp.request spans.
  • bottle: Adds http.route tag to bottle.request spans.
  • falcon: Adds http.route tag to falcon.request spans.
  • molten: Adds http.route tag to molten.request spans.
  • Adds distributed tracing for confluent-kafka integration. Distributed tracing connects Kafka consumer spans with Kafka producer spans within the same trace if a message is valid. To enable distributed tracing, set the configuration: DD_KAFKA_DISTRIBUTED_TRACING_ENABLED=True for both the consumer and producer service.
  • ASM: This introduces (experimental) api security support for fastAPI. Flask and Django were already supported in 2.4.0. Support schema computation on all addresses (requests and responses) and scanner support for pii, credentials and payment data.
  • CI Visibility: introduces a CI visibility-specific logger (enabled for the pytest plugin), enabled by setting the DD_CIVISIBILITY_LOG_LEVEL environment variable (with the same level names as Python logging levels).
  • CI Visibility: allows for waiting for the git metadata upload to complete before deciding whether or not to enable coverage (based on API response).
  • Further lazy loads telemetry_writer so that it is not running when explicitly disabled. Users must explicitly set "DD_INSTRUMENTATION_TELEMETRY_ENABLED=false".
  • tracer: Add support for remotely configuring trace tags.

Bug Fixes

  • loguru: Ensures log correlation is enabled when the root logger is initialized. Previously, log correlation was only enabled when a new sink was added.
  • Fix compatibility with other tools that try to infer the type of a Python object at runtime.
  • tracing: Fixes a bug that prevents span links from being visualized in the Datadog UI.
  • tracing: Resolves span encoding errors raised when span links do not contain expected types
  • ASM: This fix resolves an issue where custom event boolean properties were not reported as true and false like other tracers but as True and False.
  • Vulnerability Management for Code-level (IAST): Ensure that Cookies vulnerabilities report only the cookie name.
  • langchain: This fix resolves an get_openai_token_cost_for_model import error in langhcain version 0.0.351 or later.
  • ASM: This fix resolves an issue where IAST could cause circular dependency at startup.
  • tracing: Ensures all fields in ddtrace.context.Context are picklable.
  • pytest: This fix resolves an issue where the --no-cov flag did not take precedence over the --cov flag when deciding whether to report code coverage on spans.
  • rq: Fixed a bug where the RQ integration would emit a warning when setting job.status span tag.

Don't miss a new dd-trace-py release

NewReleases is sending notifications on new releases.