def handle_exception(self, *args, **kwargs): if not self.client: return self.client.captureException( exc_info=kwargs.get("exc_info"), data=get_data_from_request(request), extra={"app": self.app} )
def _handle_exception(*args, **kwargs): client.capture( "Exception", exc_info=kwargs.get("exc_info"), data=get_data_from_request(request), extra={"app": self.app}, )
def _handle_exception(sender, **kwargs): client.capture('Exception', exc_info=kwargs.get('exc_info'), data=get_data_from_request(request), extra={ 'app': sender.name, }, )
def _handle_exception(sender, **kwargs): client.capture( 'Exception', exc_info=kwargs.get('exc_info'), data=get_data_from_request(request), extra={ 'app': sender.name, }, )
def captureMessage(self, *args, **kwargs): assert self.client, "captureMessage called before application configured" data = kwargs.get("data") if data is None: try: kwargs["data"] = get_data_from_request(request) except RuntimeError: # app is probably not configured yet pass return self.client.captureMessage(*args, **kwargs)
def captureException(self, *args, **kwargs): assert self.client, 'captureException called before application configured' data = kwargs.get('data') if data is None: try: kwargs['data'] = get_data_from_request(request) except RuntimeError: # app is probably not configured yet pass return self.client.captureException(*args, **kwargs)
def handle_exception(self, *args, **kwargs): if not self.client: return self.client.capture('Exception', exc_info=kwargs.get('exc_info'), data=get_data_from_request(request), extra={ 'app': self.app, }, )
def captureMessage(self, *args, **kwargs): assert self.client, 'captureMessage called before application configured' data = kwargs.get('data') if data is None: try: kwargs['data'] = get_data_from_request(request) except RuntimeError: # app is probably not configured yet pass return self.client.captureMessage(*args, **kwargs)
def inner(*args, **kwargs): try: return func(*args, **kwargs) except Exception: if sentry is None: raise sentry.client.capture('Exception', data=get_data_from_request(request), extra={ 'app': app, }, ) return error("Uh oh. Something went wrong on our end. We've " "dispatched trained monkeys to investigate.")
def handle_exception(self, *args, **kwargs): if not self.client: return ignored_exc_type_list = self.app.config.get('RAVEN_IGNORE_EXCEPTIONS', []) exc = sys.exc_info()[1] if any((isinstance(exc, ignored_exc_type) for ignored_exc_type in ignored_exc_type_list)): return self.client.captureException( exc_info=kwargs.get('exc_info'), data=get_data_from_request(request), extra={ 'app': self.app, }, )
def captureMessage(self, *args, **kwargs): assert self.client, 'captureMessage called before application configured' data = kwargs.get('data') if data is None: kwargs['data'] = get_data_from_request(request) return self.client.captureMessage(*args, **kwargs)