Description
Requests resulting in unhandled exceptions (500 Internal Server Error) are not captured by DebugProbe.
The request appears in Swagger as a 500 response, but no entry is stored in the DebugProbe dashboard.
Expected
Requests ending with unhandled exceptions should still be captured and visible in DebugProbe.
Actual
Requests with unhandled exceptions are missing entirely from the dashboard.
Notes
Possible cause:
- request is only stored after
await _next(context)
- exception exits middleware before persistence occurs
- middleware likely needs
try/finally
Reproduction
Create endpoint throwing exception:
Description
Requests resulting in unhandled exceptions (
500 Internal Server Error) are not captured by DebugProbe.The request appears in Swagger as a
500response, but no entry is stored in the DebugProbe dashboard.Expected
Requests ending with unhandled exceptions should still be captured and visible in DebugProbe.
Actual
Requests with unhandled exceptions are missing entirely from the dashboard.
Notes
Possible cause:
await _next(context)try/finallyReproduction
Create endpoint throwing exception: