You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Transport#send(SentryEnvelope) support for Hybrid SDKs #4417
The RN SDK uses the JS SDK for capturing and processing events, and if the Native layer is disabled, even the Transport.
We'd like to implement the User feedback and Attachments features (likely more features that depend on envelopes too, e.g. client reports) on the RN SDK but that is blocked since the transport only accepts an Event.
There should be a way to also customize theSentryEnvelope, since we'd need to read the RN Scope to get the attachments and pack it into the envelope before calling the transport.
Transactions are already sent as envelopes, but the difference is a Transaction is an Event with a different type + extra fields, so that worked just fine, since Attachments and User feedback is a totally different data structure/different envelope item, the way how it just does not work.
An option would be to override everything on the RN SDK, but since the JS SDK will or can offer proper support for it, it does not make sense for us to make it, this would duplicate code, more to maintain, and likely a new source of bugs, hence we'd like to get proper support for Envelopes.
Activity
AbhiPrasad commentedon May 12, 2022
This is done with v7. See the new transport API: https://github.com/getsentry/sentry-javascript/blob/7.x/MIGRATION.md#transport-changes