sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

Add the Refit Exception Content to Sentry

Open TimVerheul opened this issue 10 months ago • 4 comments

Problem Statement

Refit is a populair library for making requests. If an exception occurs, only the Exception Message will be sent to Sentry. The Message is a very broad description (a 400 was received) without containing valuable information. This information is stored in the Content part of the Exception. Unfortunately, Sentry does not send this. So when a Refit Exception occurs, you won't know what exactly is causing this.

image

Solution Brainstorm

As a temporary solution I add my own EventExceptionProcessor but it would be nice to have something like .CatchRefit() to handle this.

TimVerheul avatar Apr 18 '24 15:04 TimVerheul