-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Add Attachment support #1327
Comments
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
In addition to this, it would be awesome to be able to run a callback when an error happen and generate attachments from this callback. I have multiple states in the app (Redux, async storage…) and I would like to dump them in attachments when an issue occurs in the app to be able to understand the error if it comes from a bad state. |
This is blocked by getsentry/sentry-javascript#4240 The RN SDK uses the JS SDK for building an event and the current version does not support the Envelope feature which is required for sending attachments. To make it work we'd need to override many of the JS behavior and later replace them once the Envelope feature is landed on the linked PR natively on the JS SDK. The best is to postpone and implement once #4240 is done, also considering attaching attachments to hard crashes on the Native layer. Points to consider:
|
We got hit by lack of support for this feature and the addGlobalEventProcessor approach that's documented for the javascript SDK was not working for us. We'd see 201 Accepted requests for the attachment on the server but they did not get attached to the event. Ultimately we ended up writing a bridge module and using the sentry-cocoa and sentry-android native APIs to send events with attachments for the limited case where we needed an attachment. Would really love support for attachments to get added to sentry-react-native using the |
Same @mmerickel I would see 201 but no attachment on Sentry. We left it for now, that was awesome you did the bridge. |
mmerickel Would you consider making the source for this bridge module publicly available? I'm trying to do the same and hit some roadblocks with regards to bridging functionality. |
#4240 is done, and sentry-react-native 4.0.0 uses it 👀 |
And 4.0.0 is released, maybe you can remove the "blocked" tag? ;) |
@renchap is attachment support in 4.0.0? or 4.0.0 just makes attachment support possible? |
It should make it possible, but not implemented yet. |
JS 7.0 unblocked this and it's a p1 for us. Btw we're hiring a RN engineer if anyone wants to get paid to work on open source full time: https://sentry.io/careers/3642918/ |
The native SDKs (sentry-android, sentry-cocoa) added support to Attachments.
The spec is in the develop docs.
Thumbs up if this is the feature you've been waiting for.
The text was updated successfully, but these errors were encountered: