getsentry / getsentry/sentry-dotnet

Add a Sentry.Refit Sample

Open
#3,314 5 comments 0 reactions 0 assignees View on GitHub
.NET Errors Feature
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

### 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](https://github.com/getsentry/sentry-dotnet/assets/29889196/afa9fd5a-9017-46d9-a836-ab58342f5c42)

### Solution Brainstorm

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.