sentry-python
sentry-python copied to clipboard
Scrubbing PII from transactions does not work
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.9.8
Steps to Reproduce
Basic Django 4.1 application and the user want to scrub one header (x-secret-thing) on the client side.
User tried to add a global event processor and one on a global scope but the event that was passed to the processor did not include the request (which should include the headers)
Expected Result
request being in the event processor so the secret headers can be scrubbed
Actual Result
No request in event processor.
This is because the users event processor is running before our internal event processors that add the request to the event.
So either we need a better customer api to have run the custom event processors after all the internal event processors so the request ist in the event.
#1226 is related.