2 ms·
Who said anything about letting exceptions reaching the users!? The exception needs to bubble up to the request pipeline, which will set an integer error code,
by jiggawatts 3y ago
Who said anything about letting exceptions reaching the users!?
The exception needs to bubble up to the request pipeline, which will set an integer error code, and then... redirect to a generic "sorry we broke" error page.
Showing the full exception stack trace and other sensitive bits and pieces is for local debug mode, not for production.
- javajosh 3y ago...and there should be a guid assigned to the problem, in the logs, and possibly visible to the end user.
- jiggawatts 3y agoThe APM does that for you. Open Telemetry, Application Insights, New Relic, etc… will all stamp the request with a unique id and associate any errors with it.