def should_process(data): """Quick check if processing is needed at all.""" from sentry.plugins import plugins for plugin in plugins.all(version=2): processors = safe_execute(plugin.get_event_preprocessors, data=data, _with_transaction=False) if processors: return True if should_process_for_stacktraces(data): return True return False