Open
Description
There is a bit of ambiguity of patch_all()
approach on aws-xray-sdk-python
. Use thereof automatically enables new patchers regardless to how well they've been tested against real use cases (#48, #90). This in turn can can lead to a nasty surprise where deployment of lambda function will not work as it patches the calls.
Some ideas on making the situation better:
- Discourage use of
patch_all()
due to its unsafe nature. - Do not include new patchers in
patch_all()
outside of major versions - Split
patch_all()
into two functionspatch_all()
andpatch_all_bleeding_edge()
where new, and un-vetted patchers are first introduced intopatch_all_bleeding_edge()
and after they've been tested are then introduced topatch_all()