Home > Software engineering >  "Exception succesfully sent to server" event
"Exception succesfully sent to server" event

Time:10-09

I'm trying to understand if there's a way to know if a notification is correctly sent to the Sentry cloud. The reason is to show to the user the feedback.

I'm using this instruction:

SentryId id = SentrySdk.CaptureException(ex);

and I don't see any exception or notification fired if the notification is sent or not (eg: no internet connection) to the cloud.

CodePudding user response:

if it fails id will be equal to Guid.Empty. If it succeeded it will have a non-empty Guid. SentryId is a thin wrapper struct around Guid and has an implicit operator to Guid.

As for logging. Sentry has the concept of a Diagnostic Logger that should allow you to capture more detail on those failures

  • Related