getsentry / sentry-react-native

Official Sentry SDK for React Native
https://sentry.io
MIT License
1.58k stars 338 forks source link

Add RN SDK name and version to native SDKs integrations #4290

Open krystofwoldrich opened 3 days ago

krystofwoldrich commented 3 days ago

Description

Sentry Events have sdk.packages properties. At the moment we add the native SDKs to the sdk.packages on RN side, but we don't do the opposite on Android and iOS.

To know what RN SDK version was used can be helpful information for debugging and it will also enable use to send RN SDK version with Replays which are completely processed on the native side.

Current RN code to add native packages

https://github.com/getsentry/sentry-react-native/blob/687023e40c0070c754f9f4e4f388048f7a29ba92/packages/core/src/js/integrations/sdkinfo.ts#L43-L47

Task add the RN package on native side.