ASP.NET Core MVC
This library reports all unhandled ASP.NET exceptions; from both MVC and other middleware. It can also report if requests go too slow or too many authentication failures.
Besides only reporting exceptions, Coderr can report additional types of errors.
Tracking invalid model states
Invalid model states are a good indication of the UX quality. For example, if many users fail to submit forms correctly, it clearly shows that they either don't know what they should enter, the forms are unclear or, a combination thereof.
To activate invalid model states, add:
Tracking slow requests
Slow requests decrease the overall user experience. Therefore, let Coderr report all requests that are too slow.
Add the following line with your time-limit:
var maxTime = TimeSpan.FromMilliseconds(500);
Tracking authentication failures
Coderr optionally tracks all failed authentication attempts. If activated, this feature reports all requests with the
Authorization header when getting a 401 or 403 as a response. Learn more about HTTP authentication.
To activate tracking authentication failures, use the following line:
The example below shows an authentication failure:
Activate this feature by including the built in script in your
_Layout.cshtml like this:
Included context collections in ASP.NET.
Coderr can include the following information:
- Action descriptor
- Form data
- HttpRequest headers