def __init__(self, app, unsafe_context_data=False):
    '\n        Instrument an ASGI application with Sentry. Provides HTTP/websocket\n        data to sent events and basic handling for exceptions bubbling up\n        through the middleware.\n\n        :param unsafe_context_data: Disable errors when a proper contextvars installation could not be found. We do not recommend changing this from the default.\n        '
    if ((not unsafe_context_data) and (not HAS_REAL_CONTEXTVARS)):
        raise RuntimeError(('The ASGI middleware for Sentry requires Python 3.7+ or the aiocontextvars package.' + CONTEXTVARS_ERROR_MESSAGE))
    self.app = app
    if _looks_like_asgi3(app):
        self.__call__ = self._run_asgi3
    else:
        self.__call__ = self._run_asgi2
Instrument an ASGI application with Sentry. Provides HTTP/websocket
data to sent events and basic handling for exceptions bubbling up
through the middleware.

:param unsafe_context_data: Disable errors when a proper contextvars installation could not be found. We do not recommend changing this from the default.
def __init__(self, app, unsafe_context_data=False):
    '\n        Instrument an ASGI application with Sentry. Provides HTTP/websocket\n        data to sent events and basic handling for exceptions bubbling up\n        through the middleware.\n\n        :param unsafe_context_data: Disable errors when a proper contextvars installation could not be found. We do not recommend changing this from the default.\n        '
    if ((not unsafe_context_data) and (not HAS_REAL_CONTEXTVARS)):
        raise RuntimeError(('The ASGI middleware for Sentry requires Python 3.7+ or the aiocontextvars package.' + CONTEXTVARS_ERROR_MESSAGE))
    self.app = app
    if _looks_like_asgi3(app):
        self.__call__ = self._run_asgi3
    else:
        self.__call__ = self._run_asgi2