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() return self.client.captureMessage(*args, **kwargs)
def handle_exception(self, *args, **kwargs): self.client.captureException( exc_info=kwargs.get('exc_info'), data=get_data_from_request(), extra={ 'app': self, }, )
def capture(self, event_type, data=None, date=None, time_spent=None, extra=None, stack=None, tags=None, **kwargs): request_data = get_data_from_request() data.update(request_data) return super(WebSentryClient, self).capture(event_type, data, date, time_spent, extra, stack, tags, **kwargs)
def captureMessage(self, *args, **kwargs): data = kwargs.get('data') if data is None: kwargs['data'] = get_data_from_request() return self.client.captureMessage(*args, **kwargs)