use ddtrace.auto since patch_all is being deprecated#551
use ddtrace.auto since patch_all is being deprecated#551ZStriker19 wants to merge 1 commit intomainfrom
Conversation
f08fd55 to
0cbdd58
Compare
0cbdd58 to
27b8d12
Compare
purple4reina
left a comment
There was a problem hiding this comment.
Will this change also require us to update the support ddtrace version? We're currently pinning to >=2.17.0
|
Integration tests are failing with |
|
Also seeing |
|
Since ddtrace.auto starts all the products I'm just going to wait till we actually deprecate patch_all, then we can switch to using the internal patch_all method here. Alternatively ddtrace.auto could be used and we'd have to set the proper envars to disable certain products and probably change some logic in tracing.py. |
@ZStriker19 I'm seeing this in a Python lambda using version 69 of the datadog extension and 105 of the Python layer (3.12) |
What does this PR do?
Replaces the instrumentation mechanism of patch_all() with import ddtrace.auto, since patch_all is being deprecated
Motivation
DataDog/dd-trace-py#11918
Testing Guidelines
We'd just hope everything still works as expected
Additional Notes
Types of Changes
Check all that apply