Ddtrace

Latest version: v2.8.5

Safety actively analyzes 629959 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 12 of 34

0.56.0

Upgrade Notes

- The aredis integration is now enabled by default.

Deprecation Notes

- The contents of `monkey.py` have been moved into `_monkey.py` in an effort to internalize the module. Public methods have been imported back into `monkey.py` in order to retain compatibility, but monkey.py will be removed entirely in version 1.0.0.
- The `ddtrace.utils` module and all of its submodules have been copied over into `ddtrace.internal` in an effort to internalize these modules. Their public counterparts will be removed entirely in version 1.0.0.

New Features

- Profiling now supports tracing greenlets with gevent version prior to 1.3.
- The heap profiler is now enabled by default.
- Add yaaredis ≥ 2.0.0 support.

Bug Fixes

- Fix Pyramid caller_package level issue which resulted in crashes when starting Pyramid applications. Level now left at default (2).
- Set the correct package name in the Pyramid instrumentation. This should fix an issue where the incorrect package name was being used which would crash the application when trying to do relative imports within Pyramid (e.g. when including routes from a relative path).
- Fix memory leak caused when the tracer is disabled.
- Allow the elasticsearch service name to be overridden using the integration config or the DD_SERVICE_MAPPING environment variable.
- Fixes parsing of `botocore` env variables to ensure they are parsed as booleans.
- Ensure tornado spans are marked as an error if the response status code is 500 \<= x \< 600.

---

0.55.4

Bug Fixes

- Fixes parsing of `botocore` env variables to ensure they are parsed as booleans.
- Ensure tornado spans are marked as an error if the response status code is 500 \<= x \< 600.

---

0.55.3

Bug Fixes

- Fix memory leak caused when the tracer is disabled.

---

0.55.2

Bug Fixes

- Set the correct package name in the Pyramid instrumentation. This should fix an issue where the incorrect package name was being used which would crash the application when trying to do relative imports within Pyramid (e.g. when including routes from a relative path).

---

0.55.1

Bug Fixes

- Fix Pyramid caller_package level issue which resulted in crashes when starting Pyramid applications. Level now left at default (2).

---

0.55.0

Upgrade Notes

- Instead of using error constants from `ddtrace.ext.errors`. Use constants from `ddtrace.constants` module. For example: `ddtrace.ext.errors.ERROR_MSG` -\> `ddtrace.constants.ERROR_MSG`
- Instead of using priority constants from `ddtrace.ext.priority`. Use constants from `ddtrace.constants` module. For Example:: `ddtrace.ext.priority.AUTO_KEEP` -\> `ddtrace.constants.AUTO_KEEP`
- Instead of using system constants from `ddtrace.ext.system`. Use constants from `ddtrace.constants` module. For Example:: `ddtrace.ext.system.PID` -\> `ddtrace.constants.PID`

Deprecation Notes

- Deprecate DATADOG_TRACE_AGENT_HOSTNAME, DATADOG_TRACE_AGENT_PORT, DATADOG_PRIORITY_SAMPLING, DATADOG_PATCH_MODULES in favor of their DD equivalents.

\[Deprecated environment variable\] \| \[Recommended environment variable\]

- For `DATADOG_TRACE_AGENT_HOSTNAME`, use `DD_AGENT_HOST`
- For `DATADOG_TRACE_AGENT_PORT` use `DD_AGENT_PORT`
- For `DATADOG_PRIORITY_SAMPLING`, [follow ingestion controls](https://docs.datadoghq.com/tracing/trace_retention_and_ingestion/#recommended-setting-the-global-ingestion-rate-to-100)
- For `DATADOG_PATCH_MODULES`, use `DD_PATCH_MODULES`

- Moved `ddtrace.ext.errors` constants into the `ddtrace.constants` module. `ddtrace.ext.errors` will be removed in v1.0. Shorthand error constant (MSG,TYPE,STACK) in `ddtrace.ext.errors` will be removed in v1.0. Function `get_traceback()` in ddtrace.ext.errors is now deprecated and will be removed v1.0.

- Moved `ddtrace.ext.priority` constants into `ddtrace.constants` module.

- Moved `ddtrace.ext.system` constants into `ddtrace.constants` module.

New Features

- Add aredis support \>= 1.1.0
- Add automatic unix domain socket detection for Dogstatsd. The expected path for the socket is `/var/run/datadog/dsd.socket` which if exists, will be used instead of the previous UDP default, `udp://localhost:8125/`. To be used in conjunction with `dogstatsd_socket` in your `datadog.yaml` file, or the `DD_DOGSTATSD_SOCKET` environment variable set on the Datadog agent.
- Add new `DD_TRACE_SAMPLING_RULES` environment variable to override default sampling rules. For Example:: `DD_TRACE_SAMPLING_RULES='[{"sample_rate":0.5,"service":"my-service"}]'`
- Add support for [snowflake-connector-python](https://pypi.org/project/snowflake-connector-python/) \>= 2.0.0. Note that this integration is in beta and is not enabled by default. See the snowflake integration documentation for how to enable.
- Only for CI Visibility (`pytest` integration): include `pytest` version as a tag in the test span.
- Added official support for Python 3.10
- Only for CI Visibility (`pytest` integration): Extract stage and job name from environment data in Azure Pipelines.

Bug Fixes

- Fixes an issue where all Django function middleware will share the same resource name.
- Fixed an issue with gevent worker processes that caused them to crash and stop.
- Fixes exceptions raised when logging during tracer initialization when `DD_LOGS_INJECTION` is enabled.
- The `ddtrace.utils.wrappers.unwrap` function now raises an error if trying to unwrap a non-wrapped object.
- Only for CI Visibility (`pytest` integration): Fix extraction of branch in GitLab CI.

---

Page 12 of 34

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.