I’m using the Sentry SDK for C# release 1.1.2 and having some trouble. I am a new user so please excuse my ignorance if this easy!
I have set up a simple integration with my C# .NET web app to capture exceptions using Sentry. I am testing by having an error in my code, and can debug through my web app to see that the SentrySdk.CaptureException() method is being called. But the exception never shows up in the sentrio.io dashboard for the project.
Here is the relevant code:
Set up:
using (SentrySdk.Init(o => { o.Dsn = new Dsn("https://ZZZ@sentry.io/ZZZ"); o.Environment = "dev"; o.SendDefaultPii = true; o.Debug = true; } )) { }
Error logging:
SentrySdk.CaptureException(ex);
What am I missing?