Skip to content

Conversation

@beniwohli
Copy link
Contributor

We need to pass along the method and module names to the function
wrapper. This has so far been done by subclassing wrapt.FunctionWrapper.
While this works, it adds a lot of duplicate code that we need to sync
up every time we update wrapt. Using a partial should mean much less
maintenance work.

@beniwohli beniwohli force-pushed the remove-wrapt-subclasses branch 5 times, most recently from dbe3675 to 2d9e80f Compare February 20, 2018 13:59
@beniwohli
Copy link
Contributor Author

pypy tests fail because somehow this change introduces two additional frames into the captures span stack traces, but only on PyPy. No idea why...

@beniwohli beniwohli force-pushed the remove-wrapt-subclasses branch from 2d9e80f to 46e59e6 Compare February 21, 2018 15:45
beniwohli added a commit to beniwohli/apm-agent-python that referenced this pull request Feb 21, 2018
We need to pass along the method and module names to the function
wrapper. This has so far been done by subclassing wrapt.FunctionWrapper.
While this works, it adds a lot of duplicate code that we need to sync
up every time we update wrapt. Using a partial should mean much less
maintenance work.

closes elastic#164
We need to pass along the method and module names to the function
wrapper. This has so far been done by subclassing wrapt.FunctionWrapper.
While this works, it adds a lot of duplicate code that we need to sync
up every time we update wrapt. Using a partial should mean much less
maintenance work.

closes elastic#164
@beniwohli beniwohli force-pushed the remove-wrapt-subclasses branch from 46e59e6 to cf17525 Compare February 21, 2018 18:41
@beniwohli beniwohli closed this in a1f6079 Feb 22, 2018
beniwohli added a commit that referenced this pull request Feb 22, 2018
We need to pass along the method and module names to the function
wrapper. This has so far been done by subclassing wrapt.FunctionWrapper.
While this works, it adds a lot of duplicate code that we need to sync
up every time we update wrapt. Using a partial should mean much less
maintenance work.

closes #164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants