コード例 #1
0
    def __init__(self, *args, **kwargs):
        StacktraceProcessor.__init__(self, *args, **kwargs)

        # If true, the project has been opted into using the symbolicator
        # service for native symbolication, which also means symbolic is not
        # used at all anymore.
        # The (iOS) symbolserver is still used regardless of this value.
        self.use_symbolicator = _is_symbolicator_enabled(self.project)

        self.arch = cpu_name_from_data(self.data)
        self.signal = signal_from_data(self.data)

        self.sym = None
        self.difs_referenced = set()

        images = get_path(self.data, 'debug_meta', 'images', default=(),
                          filter=self._is_valid_image)

        if images:
            self.available = True
            self.sdk_info = get_sdk_from_event(self.data)
            self.object_lookup = ObjectLookup(images)
            self.images = images
        else:
            self.available = False
コード例 #2
0
ファイル: processor.py プロジェクト: rlugojr/sentry
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     self.max_fetches = MAX_RESOURCE_FETCHES
     self.allow_scraping = self.project.get_option(
         'sentry:scrape_javascript', True)
     self.fetch_count = 0
     self.cache = SourceCache()
     self.sourcemaps = SourceMapCache()
     self.release = None
コード例 #3
0
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     self.max_fetches = MAX_RESOURCE_FETCHES
     self.allow_scraping = self.project.get_option(
         'sentry:scrape_javascript', True)
     self.fetch_count = 0
     self.cache = SourceCache()
     self.sourcemaps = SourceMapCache()
     self.release = None
コード例 #4
0
ファイル: plugin.py プロジェクト: Kayle009/sentry
    def __init__(self, *args, **kwargs):
        StacktraceProcessor.__init__(self, *args, **kwargs)

        self.images = set()
        self.available = False

        for image in get_path(self.data, 'debug_meta', 'images', filter=True, default=()):
            if image.get('type') == 'proguard':
                self.available = True
                self.images.add(six.text_type(image['uuid']).lower())
コード例 #5
0
ファイル: plugin.py プロジェクト: gilsonbp/sentry
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     debug_meta = self.data.get('debug_meta')
     self.sym = None
     if debug_meta:
         self.available = True
         self.debug_meta = debug_meta
         self.sdk_info = get_sdk_from_event(self.data)
     else:
         self.available = False
コード例 #6
0
ファイル: plugin.py プロジェクト: sashahilton00/sentry
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     debug_meta = self.data.get('debug_meta')
     self.cpu_name = cpu_name_from_data(self.data)
     self.sym = None
     if debug_meta:
         self.available = True
         self.debug_meta = debug_meta
         self.sdk_info = get_sdk_from_event(self.data)
         self.image_lookup = ImageLookup(self.debug_meta['images'])
     else:
         self.available = False
コード例 #7
0
ファイル: plugin.py プロジェクト: seukjung/sentry-8.15.0
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     debug_meta = self.data.get('debug_meta')
     self.cpu_name = cpu_name_from_data(self.data)
     self.sym = None
     if debug_meta:
         self.available = True
         self.debug_meta = debug_meta
         self.sdk_info = get_sdk_from_event(self.data)
         self.image_lookup = ImageLookup(self.debug_meta['images'])
     else:
         self.available = False
コード例 #8
0
ファイル: plugin.py プロジェクト: alexandrul/sentry
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     debug_meta = self.data.get('debug_meta')
     self.images = set()
     if debug_meta:
         self.available = True
         self.debug_meta = debug_meta
         for img in debug_meta['images']:
             if img['type'] == 'proguard':
                 self.images.add(six.text_type(img['uuid']).lower())
     else:
         self.available = False
コード例 #9
0
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     debug_meta = self.data.get('debug_meta')
     self.images = set()
     if debug_meta:
         self.available = True
         self.debug_meta = debug_meta
         for img in debug_meta['images']:
             if img['type'] == 'proguard':
                 self.images.add(img['uuid'])
     else:
         self.available = False
コード例 #10
0
ファイル: processor.py プロジェクト: Kayle009/sentry
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     self.max_fetches = MAX_RESOURCE_FETCHES
     self.allow_scraping = (
         self.project.organization.get_option('sentry:scrape_javascript', True) is not False
         and self.project.get_option('sentry:scrape_javascript', True)
     )
     self.fetch_count = 0
     self.sourcemaps_touched = set()
     self.cache = SourceCache()
     self.sourcemaps = SourceMapCache()
     self.release = None
     self.dist = None
コード例 #11
0
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     self.max_fetches = MAX_RESOURCE_FETCHES
     self.allow_scraping = (self.project.organization.get_option(
         'sentry:scrape_javascript', True) is not False
                            and self.project.get_option(
                                'sentry:scrape_javascript', True))
     self.fetch_count = 0
     self.sourcemaps_touched = set()
     self.cache = SourceCache()
     self.sourcemaps = SourceMapCache()
     self.release = None
     self.dist = None
コード例 #12
0
ファイル: plugin.py プロジェクト: zhwl934008411/sentry
    def __init__(self, *args, **kwargs):
        StacktraceProcessor.__init__(self, *args, **kwargs)

        self.images = set()
        self.available = False

        for image in get_path(self.data,
                              'debug_meta',
                              'images',
                              filter=is_valid_image,
                              default=()):
            self.available = True
            self.images.add(six.text_type(image['uuid']).lower())
コード例 #13
0
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     debug_meta = self.data.get('debug_meta')
     self.arch = cpu_name_from_data(self.data)
     self.sym = None
     self.difs_referenced = set()
     if debug_meta:
         self.available = True
         self.debug_meta = debug_meta
         self.sdk_info = get_sdk_from_event(self.data)
         self.object_lookup = ObjectLookup(
             [img for img in self.debug_meta['images'] if img['type'] in self.supported_images]
         )
     else:
         self.available = False
コード例 #14
0
ファイル: plugin.py プロジェクト: binlee1990/sentry
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     debug_meta = self.data.get('debug_meta')
     self.arch = cpu_name_from_data(self.data)
     self.sym = None
     self.dsyms_referenced = set()
     if debug_meta:
         self.available = True
         self.debug_meta = debug_meta
         self.sdk_info = get_sdk_from_event(self.data)
         self.object_lookup = ObjectLookup(
             [img for img in self.debug_meta['images'] if img['type'] in self.supported_images]
         )
     else:
         self.available = False
コード例 #15
0
    def __init__(self, *args, **kwargs):
        StacktraceProcessor.__init__(self, *args, **kwargs)

        self.arch = cpu_name_from_data(self.data)
        self.sym = None
        self.difs_referenced = set()

        images = get_path(self.data, 'debug_meta', 'images', default=(),
                          filter=self._is_valid_image)

        if images:
            self.available = True
            self.sdk_info = get_sdk_from_event(self.data)
            self.object_lookup = ObjectLookup(images)
        else:
            self.available = False
コード例 #16
0
ファイル: plugin.py プロジェクト: yatelu1/sentry
 def __init__(self, *args, **kwargs):
     StacktraceProcessor.__init__(self, *args, **kwargs)
     debug_meta = self.data.get('debug_meta')
     self.cpu_name = cpu_name_from_data(self.data)
     self.sym = None
     self.dsyms_referenced = set()
     if debug_meta:
         self.available = True
         self.debug_meta = debug_meta
         self.sdk_info = get_sdk_from_event(self.data)
         self.image_lookup = ImageLookup([
             img for img in self.debug_meta['images']
             if img['type'] == 'apple'
         ])
     else:
         self.available = False
コード例 #17
0
ファイル: plugin.py プロジェクト: Kayle009/sentry
    def __init__(self, *args, **kwargs):
        StacktraceProcessor.__init__(self, *args, **kwargs)

        self.arch = cpu_name_from_data(self.data)
        self.sym = None
        self.difs_referenced = set()

        images = get_path(self.data, 'debug_meta', 'images', default=(),
                          filter=(lambda img: img and img.get('type') in self.supported_images))

        if images:
            self.available = True
            self.sdk_info = get_sdk_from_event(self.data)
            self.object_lookup = ObjectLookup(images)
        else:
            self.available = False
コード例 #18
0
ファイル: processor.py プロジェクト: zhwl934008411/sentry
    def __init__(self, *args, **kwargs):
        StacktraceProcessor.__init__(self, *args, **kwargs)

        # Make sure we only fetch organization from cache
        # We don't need to persist it back since we don't want
        # to bloat the Event object.
        organization = getattr(self.project, '_organization_cache', None)
        if not organization:
            organization = Organization.objects.get_from_cache(
                id=self.project.organization_id)

        self.max_fetches = MAX_RESOURCE_FETCHES
        self.allow_scraping = (organization.get_option(
            'sentry:scrape_javascript', True) is not False
                               and self.project.get_option(
                                   'sentry:scrape_javascript', True))
        self.fetch_count = 0
        self.sourcemaps_touched = set()
        self.cache = SourceCache()
        self.sourcemaps = SourceMapCache()
        self.release = None
        self.dist = None