def GET(self, *args): current_timestamp = utc_now() base_uri, project_id = args raw_crash = DotDict(web.input()) raw_crash.base_uri = base_uri raw_crash.project_id = project_id raw_crash.sentry_data = json.loads(raw_crash.sentry_data) raw_crash.submitted_timestamp = current_timestamp.isoformat() raw_crash.crash_id = createNewOoid(current_timestamp) # raw_crash.throttle = self.throttler.throttle(raw_crash) self.config.crash_storage.save_raw_crash(raw_crash, {}, raw_crash.crash_id) self.logger.info("%s accepted", raw_crash.crash_id) return "ok"
def GET(self, *args): current_timestamp = utc_now() base_uri, project_id = args raw_crash = DotDict(web.input()) raw_crash.base_uri = base_uri raw_crash.project_id = project_id raw_crash.sentry_data = json.loads(raw_crash.sentry_data) raw_crash.submitted_timestamp = current_timestamp.isoformat() raw_crash.crash_id = createNewOoid(current_timestamp) #raw_crash.throttle = self.throttler.throttle(raw_crash) self.config.crash_storage.save_raw_crash(raw_crash, {}, raw_crash.crash_id) self.logger.info('%s accepted', raw_crash.crash_id) return 'ok'