How to know event has successfully captured?
See original GitHub issueHello,
we are trying to switch to this new sentry client from raven-sharp, but it seems some functionallity is missing. In raven-sharp was possibility to know that event captured successfully or not. For that we used RavenClient.Send()
which returns non-empty string on success.
Is there a way to know this with sentry-dotnet?
P.S.
This needed for ensuring all events will be captured (even if app restarts when e.g. was no internet connection). We cache all failed event to file, and re-send them on next app start.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Bubbling and capturing
When an event happens on an element, it first runs the handlers on it, then on its parent, then all the way up...
Read more >Is there a way to tell if an event has been handled in a ...
1 Answer 1 ... By default, your click event is likely going to bubble up to parent elements, unless you explicitly stopPropagation in...
Read more >Introduction to events - Learn web development | MDN
Events are things that happen in the system you are programming, which the system tells you about so your code can react to...
Read more >EventTarget: addEventListener() method - Web APIs | MDN
A boolean value indicating whether events of this type will be dispatched to the registered listener before being dispatched to any EventTarget ...
Read more >JavaScript Event Listeners Ultimate Guide
As you can see all the capture event listeners we created fire first and then the bubble event listeners fire next. Stopping Event...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You could implement the diagnostic logger, it logs when an event has been successfully received, queue depth etc. . See https://github.com/getsentry/sentry-dotnet/issues/185#issuecomment-486726027
Here’s a sample of the output from my Serilog file for the Diagnostic logger …
@mogikanin if you need to “block” while an event is flushed out, you can use
SentrySdk.FlushAsync
.@kanadaj that’s true, they can always hook through
ISentryHttpClientFactory
if needed.