Upgrading to 0.36.0
This release includes support for setting global application tags which will help Datadog better correlate your Python application traces and logs with other services in your infrastructure.
By providing the following settings, ddtrace
will tag your application's traces and logs appropriately:
DD_ENV
environment variable orddtrace.config.env
: the environment in which your application is running. eg:prod
,staging
.DD_VERSION
environment variable orddtrace.config.version
: the version of your application. eg:1.2.3
,6c44da20
,2020.02.13
DD_SERVICE
environment variable orddtrace.config.service
: the service which your application represents.
In you are using our logging integration manually, please update your formatter to also include the dd.env
, dd.service
and dd.version
attributes as well. See our docs on Logs Injection for more details.
Profiling
If you are using the profiler, please note that ddtrace.profile
has been renamed to ddtrace.profiling
.
Changes
Core
- core: Add support for DD_ENV (#1240)
- core: Add support for DD_VERSION (#1222)
- core: Add support for DD_SERVICE (#1280, #1292, #1294, #1296, #1297)
- inject dd.service, dd.env, and dd.version into logs (#1270)
- Log exporter support (#1276)
- chore: update wrapt to
1.12.1
(#1283) - Update _dd.measured tag support (#1302)
- feat(tracer): deprecate global excepthook (#1307)
Integrations
- guard against missing botocore response metadata (#1264 -- thanks @zhammer)
- integrations: prioritize DD_SERVICE (#1298)
Profiler
- refactor: rename ddtrace.profile to ddtrace.profiling (#1289)
- fix(profiling): fix Lock issue when stored in a class attribute (#1301)
- feat(profiling): expose the Profiler object directly in ddtrace.profiling (#1303)
- fix(tests/profiling): use a string with setenv, not a int (#1321)
- fix(profiling/http): converts nanoseconds timestamp to seconds (#1325)
Opentracing
- Add uds_path to ddtrace.opentracer.Tracer (#1275 -- thanks @worldwise001)
Documentation
- fix import for profiling docs (#1271)
- fix profiler example and more details about API usage (#1284)
- Fixed typos in ddtrace.contrib.django docs (#1286 -- thanks @sergeykolosov)
- Fix tiny typo in Issue template (#1288)
- Typo in readme (#1300 -- thanks @Holek)
Testing and tooling
- Check profiler accuracy (#1260)
- chore(ci): fix flake8 and pin pytest and readme_renderer (#1278)
- fix(tests,profile): do not test the number of locking events (#1282)
- fix: do not build wheels on Python 3.4 + run test buildin wheels in the CI (#1287)
- fix(tests,profiling): correct number of frames handling (#1290)
- fix(tests, opentracer): flaky threading test (#1293)
- build: use latest manylinux images (#1305)
- feat(wheels): update to manylinux2010 (#1308)