Add a wrapper by method

The wrapper can be used to add metadata or to take actions before or after calling the current method