-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Feat: Failed requests HTTP client #473
Conversation
Codecov Report
@@ Coverage Diff @@
## main #473 +/- ##
==========================================
- Coverage 91.24% 91.23% -0.02%
==========================================
Files 63 66 +3
Lines 2091 2168 +77
==========================================
+ Hits 1908 1978 +70
- Misses 183 190 +7
Continue to review full report at Codecov.
|
@bruno-garcia In the future there would then be a third client for the distributed tracing thingy. |
@bruno-garcia opinions? |
Sorry I'll take a look in a bit |
The decorator approach LGTM as its indeed easier to test and compose features as needed. A couple of things to keep in mind is the usability though, the user should have a simple way into the API without having to worry about the decoration composition. This will also to allow us to add new decorators later without affecting the user. So if we can keep: |
That's the plan.
That's a good point. Just changed it accordingly. |
The integration creating events directly will open a new precedence for other SDKs. We don't do this yet from anywhere AFAIK. At least not in the Mobile team's SDKs. Including .NET and Java bases. Would love to hear your learnings once this is live and some customer feedback came in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@bruno-garcia would you like to do a final review before we merge and release it as beta? as this PR drives the PoC |
What is the largest allowed size? I'll add another test for that.
Gonna do that, too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's the risk of creating events too large for ingestion.
What is the largest allowed size? I'll add another test for that.
as we are using MaxRequestBodySize
, I guess we don't need to do anything more, if the user is using always
its their own risk to get events dropped, see a similar issue getsentry/sentry-java#910
checking the size of the event before sending has runtime cost so that's why we don't do it.
just in case of know-how, https://develop.sentry.dev/sdk/envelopes/#size-limits
worth noting that this is for envelopes, which is gonna be into the next major as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
📜 Description
This is a HTTP client wich automatically add failed requests to an event.
💡 Motivation and Context
Closes #292
💚 How did you test it?
It still needs tests.
📝 Checklist
🔮 Next steps