Can Raygun be customised to choose which errors to raise?
Jon Bates
Posted on
Mar 31 2015
Hi,
I Have a WebApi v2 app, which I have hooked up using RaygunWebApiClient.Attach(config);
When the service returns a 403, Raygun logs this, but I would not regard this as an exceptional situation. Does a hook exist to allow me to configure the client to only (for example) treat unhandled exceptions and 500-class errors as exceptions?
Thanks,
Jon
Callum
Posted on
Mar 31 2015
Indeed there is, you can set this in web.config:
<RaygunSettings apikey="YOUR_APP_API_KEY" excludeHttpStatusCodes="403" />
This is available on the RaygunSettings if you want to set this programatically.