Commit 58bf5fd
[Backport 7.72.x] fix: Disable ddtrace Python stack profiling V2 (#42247)
Backport a257bc0 from #42222.
___
### What does this PR do?
This PR disables a a feature in ddtrace that can rarely hang. See incident-43814.
This workaround disables wall clock time and cpu time for Python profiling. The full fix will be available in ddtrace 3.17. Once we upgrade to that version, we can disable the workaround.
The feature is disabled by setting the DD_PROFILING_STACK_V2_ENABLED environment variable to false on init.
### Motivation
Avoid potential hangs when integration profiling is enabled.
### Describe how you validated your changes
We've been running [DD_PROFILING_STACK_V2_ENABLED=false](DataDog/integrations-core@1af8dc3) in the integrations-core CI for a week without hangs.
Also, ran a Python custom check that verifies the value of DD_PROFILING_STACK_V2_ENABLED. The custom check ran on a container built by this PR's pipeline.
### Additional Notes
Co-authored-by: nubtron <enrico.donnici@datadoghq.com>
Co-authored-by: axel.vonengel <axel.vonengel@datadoghq.com>1 parent c7b1630 commit 58bf5fd
2 files changed
Lines changed: 16 additions & 0 deletions
File tree
- pkg/collector/python
- releasenotes/notes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments