This is GH copilot analysis, I'm the carrier
Problem:
Several instrumentations in this repo call wrapt.wrap_function_wrapper() using keyword arguments (module=..., name=..., wrapper=...). In environments where the resolved wrapt version (or wrap_function_wrapper implementation) does not accept the module keyword,
auto-instrumentation fails with: TypeError: wrap_function_wrapper() got an unexpected keyword argument 'module'
Related context / report: #4442
Affected instrumentations (at least):
Proposed solution
- Use wrapt API that are consistent between v1 and v2.
- Keep two versions of wrapt in test requirements - there should be oldest and latest test dependency files
- Consider calling wrap_function_wrapper in a way that avoids keyword incompatibility, if feasible.
This is GH copilot analysis, I'm the carrier
Problem:
Several instrumentations in this repo call
wrapt.wrap_function_wrapper()using keyword arguments (module=...,name=...,wrapper=...). In environments where the resolvedwraptversion (orwrap_function_wrapperimplementation) does not accept themodulekeyword,auto-instrumentation fails with:
TypeError: wrap_function_wrapper() got an unexpected keyword argument 'module'Related context / report: #4442
Affected instrumentations (at least):
Proposed solution