async def METHOD_NAME(self, scope, receive, send):
    # type: (Any, Any, Any, Any) -> Any
    if Hub.current.get_integration(QuartIntegration) is None:
        return await old_app(self, scope, receive, send)
    middleware = SentryAsgiMiddleware(lambda *a, **kw: old_app(self, *a, **kw))
    middleware.__call__ = middleware._run_asgi3
    return await middleware(scope, receive, send)