how do we know an request is send successfully #7276
-
just like network occur, request can not be sent. inside sentry, it has been capture, and there is no err handle on sentry's config |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hey @SunoAries! Unfortunately there is no guarantee the SDK can make if a request is sent successfully since the event might be dropped due to rate limiting by sentry server or network conditions causing the event to never reach sentry. If the event has been captured, you can look using the You can also enable |
Beta Was this translation helpful? Give feedback.
-
Yes essentially you just want know if it was sent to Sentry, which as Abhi says it could still be "dropped" by the server, but then it was still sent successfully to Sentry. For more context you can see this Sentry SDK developer documentation |
Beta Was this translation helpful? Give feedback.
-
Sorry to bump an old issue, @AbhiPrasad - but how can I understand why an event was dropped. I am trying to send transaction events from cloudflare workers using the https://github.com/toucan-js library, I proxied the fetcher so I could see that events were being sent to sentry and getting a 200 response, but then nothing in discover, and now in Stats I can see them all being dropped: How do I find out the reason? If invalid data, how comes sentry doesn't respond 400? I checked the body that was being sent and it seems to conform to https://develop.sentry.dev/sdk/event-payloads/transaction/ so I am at a bit of a loss.. I have raised a support request also, but would be great to be able to see the reasons for these drops at least in the sentry app EDIT: found robertcepa/toucan-js#211 - so that is most likely my issue, still would be good to be able to see why.. |
Beta Was this translation helpful? Give feedback.
Hey @SunoAries! Unfortunately there is no guarantee the SDK can make if a request is sent successfully since the event might be dropped due to rate limiting by sentry server or network conditions causing the event to never reach sentry.
If the event has been captured, you can look using the
beforeSend
hook to check if the event is about to be sent.You can also enable
debug: true
in the SDK options to get even more details.