def prepare(self): middleware = bugsnag.configure().internal_middleware bugsnag.configure().runtime_versions['tornado'] = tornado.version middleware.before_notify(self.add_tornado_request_to_notification) if bugsnag.configuration.auto_capture_sessions: bugsnag.start_session()
async def __call__(self, scope, receive, send): bugsnag.configure_request(asgi_scope=scope) try: if bugsnag.configuration.auto_capture_sessions: bugsnag.start_session() await self.app(scope, receive, send) except Exception as e: bugsnag.auto_notify(e, severity_reason=SEVERITY_REASON) raise
def __init__(self, application, environ, start_response): self.environ = environ bugsnag.configure_request(wsgi_environ=self.environ) try: if bugsnag.configuration.auto_capture_sessions: bugsnag.start_session() self.app = application(environ, start_response) except Exception as e: bugsnag.auto_notify(e, severity_reason=self.SEVERITY_REASON) raise
def __init__(self, application, environ, start_response): self.environ = environ bugsnag.configure_request(wsgi_environ=self.environ) try: if bugsnag.configuration.auto_capture_sessions: bugsnag.start_session() self.app = application(environ, start_response) except Exception as e: bugsnag.auto_notify( e, severity_reason=self.SEVERITY_REASON ) raise
def __track_session(sender, **extra): if bugsnag.configuration.auto_capture_sessions: bugsnag.start_session()
def prepare(self): bugsnag.configure().runtime_versions['tornado'] = tornado.version if bugsnag.configuration.auto_capture_sessions: bugsnag.start_session()
def prepare(self): if bugsnag.configuration.auto_capture_sessions: bugsnag.start_session()
def prepare(self): if bugsnag.configuration.auto_capture_sessions: bugsnag.start_session()
def __track_session(sender, **extra): if bugsnag.configuration.auto_capture_sessions: bugsnag.start_session()