-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capture event for HTTP requests resulted in server error #38
Comments
Adding the |
@marandaneto great point, we raised #41 and I added to the description |
Removed the label for Apple because, with Swizzling, it should work for every integration. |
Pending for Dart/Flutter getsentry/sentry-dart#1115 |
@krystofwoldrich this has been implemented on the JS SDK, can we confirm it works for RN as well and mark the checkbox? |
JS SDK implementation works on RN native. Just needs to be added to the RN docs. |
Capacitor will also pickup the JS implementation. |
Android/Java tracking here getsentry/sentry-java#2639 |
I think .NET was the last one - Just released today in 3.31.0. Closing this as completed. Thanks all! |
Only Cocoa has good docs for this. We need to make that page common so we can all add them. |
An HTTP request can 'succeed' from the point of view of code. There wasn't a DNS failure, or a network timeout. No
Exception
was thrown.Currently, in many SDKs, that means Sentry doesn't capture any events. The thinking behind it was: It's the user code that is responsible in this case. They might want to do a retry after a few seconds. If that retry works, then the first failure might not be considered an error at all.
The might want to capture the first event with level
info
(as opposed toerror
) and only once all retries are exhausted, theerror
level event is sent.On the flip side, the assumption that the user code will "do the right thing" is flawed. We need to have sensible defaults, that will give value to our users out of the box. If there's some outage caused by the backend, a Mobile developer would want to be aware of that. It might come in through a series of failed HTTP requests, but the spike in events will trigger and alert, and the relevant teams can get involved to try fix the issue.
For that reason we're designing a new feature to be built-in to SDKs that have HTTP integrations. Some thoughts:
The target of this feature is any SDK with HTTP integrations. For example:
Additionally from the event captured, we could optionally attach the request and/or response body. This is tracked here:
Relevant PRs in Flutter
Internal customer request issue: https://getsentry.atlassian.net/browse/FEEDBACK-1492
Docs
SDKs
failedRequestTargets
for HTTP Client errors sentry-dart#1115Backend
The text was updated successfully, but these errors were encountered: