Skip to content

Commit 4517fa3

Browse files
Update Expo Migration Guide Tags Recommendation (#13649)
1 parent 79237e2 commit 4517fa3

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

docs/platforms/react-native/migration/sentry-expo.mdx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Expo-specific tags are no longer added by default. If you were using them, you c
8383

8484
```javascript
8585
import Constants from "expo-constants";
86+
import * as Application from 'expo-application';
8687
import * as Device from "expo-device";
8788
import * as Updates from "expo-updates";
8889

@@ -94,16 +95,12 @@ Sentry.setExtras({
9495
linkingUri: Constants.linkingUri,
9596
});
9697

97-
Sentry.setTag("expoReleaseChannel", Updates.manifest.releaseChannel);
98-
Sentry.setTag("appVersion", Updates.manifest.version);
99-
Sentry.setTag("appPublishedTime", Updates.manifest.publishedTime);
100-
Sentry.setTag("expoSdkVersion", Updates.manifest.sdkVersion);
101-
Sentry.setTag("deviceId", Constants.sessionId);
102-
Sentry.setTag("appOwnership", Constants.appOwnership || "N/A");
103-
if (Constants.appOwnership === "expo" && Constants.expoVersion) {
104-
Sentry.setTag("expoAppVersion", Constants.expoVersion);
105-
}
10698
Sentry.setTag("expoChannel", Updates.channel);
99+
Sentry.setTag("appVersion", Application.nativeApplicationVersion);
100+
Sentry.setTag("deviceId", Constants.sessionId);
101+
Sentry.setTag("executionEnvironment", Constants.executionEnvironment);
102+
Sentry.setTag("expoGoVersion", Constants.expoVersion);
103+
Sentry.setTag("expoRuntimeVersion", Constants.expoRuntimeVersion);
107104
```
108105

109106
## Review `react-native-web` Compatibility

0 commit comments

Comments
 (0)