Using Refit/Named Clients with SentryHttpMessageHandler #2735
Unanswered
SteveSitekitcare
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hey there! Let me give that a try and get back to you. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
I'm tyring to setup Sentry for MAUI. Im using dotnet 7.
My application sets up all its httpclients using named clients with refit.
I cant see how refit is an issue here as it simply registers the same way as the default.
I'm producing 504 status codes which are withing the 500 range that docs state is the default to track
e.g.
DEFAULT
builder.Services.AddHttpClient();
REFIT
builder.Services.AddRefitClient()
So my sample code looks like this
This isnt producing anything in sentry
the docs do state the following
https://docs.sentry.io/platforms/dotnet/guides/maui/configuration/http-client-errors/?original_referrer=https%3A%2F%2Fdocs.sentry.io%2F
specifically this section
Im registering using the Sentry Maui extension as the setup doc describes
https://docs.sentry.io/platforms/dotnet/guides/maui/configuration/http-client-errors/?original_referrer=https%3A%2F%2Fdocs.sentry.io%2F
I've even asked the bot. I cant seem to get any errors
Beta Was this translation helpful? Give feedback.
All reactions