captureEnvelope and metadata #2296
-
I use And i create the envelope from the JSON object. My issue is for those events i dont have the device context nor all the system breadcrumbs. I do see all that for a native crash (which does not go through the JS stack). My question is when an envelope is captured is it augmented with all the native sentry-cocoa data? (like it is done on Android). After looking at the code it does not seem to be the case. An envelope is sent right away as it is. Which means react native events (and Nativescript ones) cant be augmented with system breadcrumbs and other data. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
No, it is not. As you already pointed out, the Cocoa SDK just sends the envelope. For adding the device context, the RN SDK uses a workaround, see https://github.com/getsentry/sentry-react-native/blob/befcc51698900298139374f7b71492b44193cfc0/ios/RNSentry.m#L164-L196 We have an issue to fix that, see getsentry/team-mobile#11. Maybe that also works for you, @farfromrefug. |
Beta Was this translation helpful? Give feedback.
No, it is not. As you already pointed out, the Cocoa SDK just sends the envelope. For adding the device context, the RN SDK uses a workaround, see https://github.com/getsentry/sentry-react-native/blob/befcc51698900298139374f7b71492b44193cfc0/ios/RNSentry.m#L164-L196
We have an issue to fix that, see getsentry/team-mobile#11.
Maybe that also works for you, @farfromrefug.