Exclude All Form Values?

fujiiface

Posted on
May 30 2014

This is a question related to the one found here.

I know that you can you exclude specific form values using the IgnoreFormDataNames(IEnumerable<string>) method but my question is whether it is planned to include an option that allows you to completely remove form values from the exception without having to specify specific field names. Something like the following:

var exception = Server.GetLastError();
new Mindscape.Raygun4Net.RaygunClient().ExcludeFormDataNames().Send(exception);

Furthermore, this could possibly be extended to filter out entire sections that are sent and processed like an .ExcludeServerVariables() or .ExcludeHeaderValues() method.


John-Daniel Trask

Raygun

Posted on
May 30 2014

Hi,

At present we don't have this, but certainly it's something we could look at.

In the meantime, you could tweak the raygun4net provider to exclude these values in a custom build. The source code for the provider is available on GitHub here:

https://github.com/MindscapeHQ/raygun4net

Note: There is a recently committed patch for preventing the sending of an error if it has sensitive data here: https://github.com/MindscapeHQ/raygun4net/commit/037575523b06b046cad1c4783dc8eb3e0049de7b (there are several customers using Raygun in PCI compliant environments that have similar sensitivity issues, so we're always folding in new updates to help that scenario).

Kind regards,

John-Daniel Trask
Co-founder
Mindscape Limited


Jason Fauchelle

Raygun

Posted on
Jun 05 2014

Hello fujiiface

The latest version of the Raygun4Net provider now includes an event called SendingMessage on the RaygunClient. You can listen to this event which will give you the RaygunMessage object just before it gets serialized and sent to Raygun.io. From within your SendingMessage event handler you can make whatever customizations you want to the message such as removing all the form values.

Let me know if you have any questions about this.

-Jason Fauchelle


fujiiface

Posted on
Jun 17 2014

Thanks guys. I will check these out and let you know if I run into any issues.


Jason Fauchelle

Raygun

Posted on
Jun 27 2014

For anyone who come across this thread, Raygun4Net 3.0 now provides an easy way to exclude all form values. Read about it here: https://raygun.io/blog/2014/06/raygun4net-3-0/

-Jason Fauchelle


Reply