-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to filter request input from being sent to Sentry #1724
Comments
Hey @dwightwatson, you mention 1 issue here and a feature request.
Are you sure you followed the example to the letter? This works in all my testing so far, maybe you can share what you tried? A common thing is that it's overlooked that it needs to be a
I agree that that would be more elegant, happy to explore that path a bit further to see what we can cook up to make this a little simpler in the future! |
Hey @stayallive thanks for that. You're right - I missed that it was a Would love to see this simplified further to remove the additional boilerplate. Plus, it seems like it would be beneficial for |
I'm at least glad that the I'm going to see if we can figure something out for not sending data to Sentry. I'm guessing you do know that these fields are filtered away server side (or on Relay) but that you don't even want to sent it? I know we had some filtering option in past SDK versions so unsure if we would want to bring a version of that back. |
Yes - I have already added these as filtered on Sentry's side. In one app I'm dealing with some sensitive personal information and it seems better to me that this doesn't leave my server at all. |
Problem Statement
I would like an easy way to configure this integration from sending certain request input to Sentry. Right now the documentation suggests we use the
before_send
configuration option, but this has two issues.config:cache
. The docs suggest that I can use the callable array syntax but that doesn't seem to work for `before_send.Solution Brainstorm
Simplest solution would be config option that accepts an array of field names that would be removed or filtered before being sent to Sentry.
I note that Flare has more advanced options, including middleware that makes it easy to filter input and headers.
The text was updated successfully, but these errors were encountered: