示例#1
0
文件: coreapi.py 项目: zsirfs/sentry
    def insert_data_to_database(self,
                                data,
                                start_time=None,
                                from_reprocessing=False):
        # Seems like the event is valid and we can do some more expensive
        # work on the minidump. That is, persisting the file itself for
        # later postprocessing and extracting some more information from
        # the minidump to populate the initial callstacks and exception
        # information.
        event_id = data['event_id']
        minidump = data['extra'].pop('upload_file_minidump')
        merge_minidump_event(data, minidump.temporary_file_path())
        upload_minidump(minidump, event_id)

        # All more advanced analysis, such as stack frame symbolication,
        # requires a proper stacktrace, which requires call frame infos
        # (CFI) for more accurate stackwalking. This task is executed
        # even before starting the native language plugin, which will
        # ultimately perform stack frame symbolication.

        # Continue with persisting the event in the usual manner and
        # schedule default preprocessing tasks
        super(MinidumpApiHelper,
              self).insert_data_to_database(data, start_time,
                                            from_reprocessing)
示例#2
0
    def insert_data_to_database(self, data, start_time=None, from_reprocessing=False):
        # Seems like the event is valid and we can do some more expensive
        # work on the minidump. That is, persisting the file itself for
        # later postprocessing and extracting some more information from
        # the minidump to populate the initial callstacks and exception
        # information.
        event_id = data['event_id']
        minidump = data['extra'].pop('upload_file_minidump')
        merge_minidump_event(data, minidump.temporary_file_path())
        upload_minidump(minidump, event_id)

        # All more advanced analysis, such as stack frame symbolication,
        # requires a proper stacktrace, which requires call frame infos
        # (CFI) for more accurate stackwalking. This task is executed
        # even before starting the native language plugin, which will
        # ultimately perform stack frame symbolication.

        # Continue with persisting the event in the usual manner and
        # schedule default preprocessing tasks
        super(MinidumpApiHelper, self).insert_data_to_database(
            data, start_time, from_reprocessing)