Пример #1
0
    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()
Пример #2
0
 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
Пример #3
0
    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
Пример #4
0
    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
Пример #5
0
def __track_session(sender, **extra):
    if bugsnag.configuration.auto_capture_sessions:
        bugsnag.start_session()
Пример #6
0
 def prepare(self):
     bugsnag.configure().runtime_versions['tornado'] = tornado.version
     if bugsnag.configuration.auto_capture_sessions:
         bugsnag.start_session()
Пример #7
0
 def prepare(self):
     if bugsnag.configuration.auto_capture_sessions:
         bugsnag.start_session()
Пример #8
0
 def prepare(self):
     if bugsnag.configuration.auto_capture_sessions:
         bugsnag.start_session()
Пример #9
0
def __track_session(sender, **extra):
    if bugsnag.configuration.auto_capture_sessions:
        bugsnag.start_session()