Пример #1
0
    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)
Пример #2
0
 def handle_exception(self, *args, **kwargs):
     self.client.captureException(
         exc_info=kwargs.get('exc_info'),
         data=get_data_from_request(),
         extra={
             'app': self,
         },
     )
Пример #3
0
    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)
Пример #4
0
    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)
Пример #5
0
 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)