Refactor Sentry tags for Android app info

This commit is contained in:
MartinBraquet
2026-04-03 17:25:26 +02:00
parent 29ace2d2e5
commit 008110b015

View File

@@ -174,8 +174,8 @@ function MyApp(props: AppProps<PageProps>) {
const appInfo = await App.getInfo().catch((e) => debug('Could not load Android app info:', e))
const appVersion = appInfo?.version
if (appVersion) {
Sentry.setTag('android_version', appVersion)
Sentry.setTag('android_build_number', appInfo?.build)
Sentry.setTag('androidApp.version', appVersion)
Sentry.setTag('androidApp.buildNumber', appInfo?.build)
}
}
fetchAppInfo()