github DataDog/dd-trace-py v0.37.0
0.37.0

latest releases: v2.16.2, v2.17.0rc1, v2.16.1...
4 years ago

Upgrading to 0.37.0

This release introduces mainly bug fixes as well as some new configuration options for the profiling library.

Profiler

New environment variables have been added to allow you to easily configure and describe your application in Datadog.

  • DD_SITE: Specify which site to use for uploading profiles. Set to datadoghq.eu to use EU site.
  • DD_API_KEY: an alias to DD_PROFILING_API_KEY.
  • DD_ENV: the environment in which your application is running. eg: prod, staging
  • DD_VERSION: the version of your application. eg: 1.2.3, 6c44da2, 2020.02.13
  • DD_SERVICE: the service which your application represents.

Changes

Bug fixes

  • tracer: stop previous writer if a new one is created (#1356)
  • Fix task context management for asyncio in Python <3.7 (#1353)
  • fix(profiling): pthread_t is defined as unsigned long, not int (#1347)
  • span: handle non-string tag keys (#1345)
  • fix(profiling): use formats.asbool to convert bool from env (#1342)
  • fix: avoid context deadlock with logs injection enabled (#1338 -- thanks @zhammer)
  • fix: make C extensions mandatory (#1333)
  • fix(profiling): allow to override options after load (#1332)
  • fix(profiling): ignore failure on shutdown (#1327)
  • logging: fix docs typo (#1323)

Integrations

  • Add config to omit django.user.name tag from request root span (#1361 -- thanks @sebcoetzee)
  • Update error event handler name within SQLAlchemy engine (#1324 -- thanks @RobertTownley)
  • docs(opentracing): add celery example (#1329)

Core

  • refactor(tracer): remove property for Tracer.context_provider (#1371)
  • writer: allow configuration of queue maxsize via env var (#1364)
  • feat(profiling): replace http_client by urllib for uploading (#1359)
  • feat(profiling): allow to pass service_name to HTTP exporter (#1358)
  • Updates configuration docs (#1360 -- thanks @sburns)
  • feat(profiling): add the pip install when recompilation is needed (#1334)
  • tracer: support tracing across fork() (#1331)
  • Allow Profiler to finish upload data in the background when stopped (#1322)

Tests

  • test(profiling): check for thread presence rather than number of threads (#1357)
  • aiobotocore: pin to <1.0 (#1330)
  • ci: allow to use latest pytest version (#1326)
  • fix(tests/profiling): use a string with setenv, not an int (#1321)

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

NewReleases is sending notifications on new releases.