Ignore specific http requests

Hi all,

I’d like to not record exceptions generated intentionally by our integration tests that make http requests. Is there a magical header I can set such that sentry will not report an exception? I’m using python client in flask.

Cheers!

nvm, this should do it:

from flask import request
from raven import Client

class CustomClient(Client):
def should_capture(self, exc_info):
if request.headers.get(‘my-test-header’):
return False
return Client.should_capture(self, exc_info)