'Create a middleware object that can be injected in a ZeroRPC server.
- hide_zerorpc_frames: modify the exception stacktrace to remove the
internal zerorpc frames (True by default to make
the stacktrace as readable as possible);
- client: use an existing raven.Client object, otherwise one will be
instantiated from the keyword arguments.'

def __init__(self, hide_zerorpc_frames=True, client=None, **kwargs):

    self._sentry_client = (client or Client(**kwargs))
    self._hide_zerorpc_frames = hide_zerorpc_frames
