-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Send DSN with SentryEnvelopeHeader #873
Conversation
@vishnukvmd Thanks for doing this. Would you like to raise an issue on that repo as well? Thanks. |
Hey @marandaneto, why would this require changes to the Java SDK? Isn't the Dart SDK self contained? |
Hey, no, the Android SDK has to deserialize and serialize again the event in order to enrich the event with the device context. On iOS it'd work ootb. |
Yikes, I had no idea. I would much rather someone who is familiar with the development environment for the Java SDK make that change. I hope that's okay. |
Yep, let me try to get into this latest next week since this is a short week, if that's ok. |
That'd be great, thank you so much! 🙏 |
Codecov ReportBase: 90.05% // Head: 90.13% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #873 +/- ##
==========================================
+ Coverage 90.05% 90.13% +0.08%
==========================================
Files 105 107 +2
Lines 3357 3405 +48
==========================================
+ Hits 3023 3069 +46
- Misses 334 336 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@ua741 CI is unhappy, also, add a new changelog entry, after that, happy to LGTM. |
Seems like only a lint issue, preferred const over final, otherwise tests are passing. |
Closing in favor of #1050 |
📜 Description
This change injects DSN into the
SentryEnvelopeHeader
class and serializes it if available.💡 Motivation and Context
This change ensures that the DSN is passed to the server along with events, bringing in consistency with the JavaScript SDK. This gets us one step closer to passing a
tunnel
that can be used to proxy data to Sentry servers (to fixe #872). Once this change is merged, will create a separate PR that acceptstunnel
as a parameter within theSentryConfig
and configures the transport accordingly (again, similar to the JS SDK).💚 How did you test it?
Verified that the
dsn
was passed within the envelope to the remote server.📝 Checklist
🔮 Next steps