Skip to content

Commit

Permalink
chore: upgrade Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodonisko committed Feb 25, 2025
1 parent eb7fbf6 commit 1f54e33
Show file tree
Hide file tree
Showing 17 changed files with 590 additions and 397 deletions.
2 changes: 1 addition & 1 deletion packages/suite-build/configs/base.webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const config: webpack.Configuration = {
org: 'satoshilabs',
project: 'trezor-suite',
authToken: sentryAuthToken,
release: { name: sentryRelease, cleanArtifacts: true },
release: { name: sentryRelease },
sourcemaps: {
assets: path.join(getPathForProject(project), 'build', '**'),
ignore: ['static/connect'], // connect does not contain source maps for now
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@sentry/webpack-plugin": "^2.22.7",
"@sentry/webpack-plugin": "^3.2.1",
"@trezor/eslint": "workspace:*",
"@types/copy-webpack-plugin": "^10.1.0",
"@types/node-fetch": "^2.6.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/suite-desktop-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:e2e:update-snapshots": "yarn xvfb-maybe -- playwright test --config=./e2e/playwright.config.ts --grep @snapshot --update-snapshots"
},
"dependencies": {
"@sentry/electron": "^5.9.0",
"@sentry/electron": "^6.1.0",
"@suite-common/message-system": "workspace:*",
"@suite-common/sentry": "workspace:*",
"@suite-common/suite-constants": "workspace:^",
Expand Down Expand Up @@ -54,7 +54,7 @@
"@playwright/browser-firefox": "^1.49.1",
"@playwright/browser-webkit": "^1.49.1",
"@playwright/test": "^1.49.1",
"@sentry/webpack-plugin": "^2.22.7",
"@sentry/webpack-plugin": "^3.2.1",
"@trezor/trezor-user-env-link": "workspace:*",
"@trezor/type-utils": "workspace:*",
"@types/electron-localshortcut": "^3.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-desktop-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint:styles": "npx stylelint './src/**/*{.ts,.tsx}' --cache --config ../../.stylelintrc"
},
"dependencies": {
"@sentry/electron": "^5.9.0",
"@sentry/electron": "^6.1.0",
"@suite-common/formatters": "workspace:*",
"@suite-common/sentry": "workspace:*",
"@suite-common/suite-types": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "yarn rimraf ./build && yarn workspace @trezor/suite-build run build:web"
},
"dependencies": {
"@sentry/browser": "^8.47.0",
"@sentry/browser": "^9.2.0",
"@suite-common/formatters": "workspace:*",
"@suite-common/sentry": "workspace:*",
"@suite-common/suite-types": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@hookform/resolvers": "3.10.0",
"@mobily/ts-belt": "^3.13.1",
"@reduxjs/toolkit": "1.9.5",
"@sentry/core": "^8.47.0",
"@sentry/core": "^9.2.0",
"@solana/buffer-layout": "^4.0.1",
"@solana/web3.js": "^2.0.0",
"@suite-common/analytics": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion suite-common/sentry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type-check": "yarn g:tsc --build"
},
"dependencies": {
"@sentry/core": "^8.47.0",
"@sentry/core": "^9.2.0",
"@suite-common/suite-utils": "workspace:*",
"@trezor/utils": "workspace:*"
}
Expand Down
3 changes: 1 addition & 2 deletions suite-common/sentry/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ const ignoreErrors = [
'device disconnected during action', // the same as with 'other call in progress'
];

export const SENTRY_CONFIG: Options = {
export const SENTRY_CONFIG = {
dsn: 'https://6d91ca6e6a5d4de7b47989455858b5f6@o117836.ingest.sentry.io/5193825',
autoSessionTracking: false, // do not send analytical data to Sentry
integrations: [
captureConsoleIntegration({
levels: ['error'],
Expand Down
4 changes: 2 additions & 2 deletions suite-native/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"@react-navigation/native": "6.1.18",
"@react-navigation/native-stack": "6.11.0",
"@reduxjs/toolkit": "1.9.5",
"@sentry/core": "8.47.0",
"@sentry/react-native": "6.5.0",
"@sentry/core": "^9.2.0",
"@sentry/react-native": "^6.9.0",
"@shopify/flash-list": "^1.7.2",
"@shopify/react-native-skia": "^1.11.6",
"@suite-common/analytics": "workspace:*",
Expand Down
7 changes: 2 additions & 5 deletions suite-native/app/src/SentryProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ const initSentry = () => {
// We recommend adjusting this value in production.
tracesSampleRate: 0.5,
environment: isDetoxTestBuild() ? 'test' : getEnv(),
integrations: [
captureConsoleIntegration({
levels: ['error'],
}),
],
integrations: [captureConsoleIntegration({ levels: ['error'] }) as any],
attachStacktrace: true,
// You can put EXPO_PUBLIC_IS_SENTRY_ON_DEBUG_BUILD_ENABLED=true to `.env.development.local` to debug Sentry locally.
enabled:
!isDebugEnv() || process.env.EXPO_PUBLIC_IS_SENTRY_ON_DEBUG_BUILD_ENABLED === 'true',
Expand Down
2 changes: 1 addition & 1 deletion suite-native/device/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@mobily/ts-belt": "^3.13.1",
"@react-navigation/native": "6.1.18",
"@reduxjs/toolkit": "1.9.5",
"@sentry/react-native": "6.5.0",
"@sentry/react-native": "^6.9.0",
"@suite-common/message-system": "workspace:*",
"@suite-common/redux-utils": "workspace:*",
"@suite-common/suite-utils": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion suite-native/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@mobily/ts-belt": "^3.13.1",
"@react-navigation/native": "6.1.18",
"@reduxjs/toolkit": "1.9.5",
"@sentry/react-native": "6.5.0",
"@sentry/react-native": "^6.9.0",
"@shopify/react-native-skia": "^1.11.6",
"@suite-common/formatters": "workspace:*",
"@suite-common/graph": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion suite-native/module-dev-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@mobily/ts-belt": "^3.13.1",
"@react-navigation/native": "6.1.18",
"@react-navigation/native-stack": "6.11.0",
"@sentry/react-native": "6.5.0",
"@sentry/react-native": "^6.9.0",
"@suite-common/message-system": "workspace:*",
"@suite-common/wallet-core": "workspace:*",
"@suite-native/atoms": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion suite-native/navigation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@react-navigation/bottom-tabs": "6.6.1",
"@react-navigation/native": "6.1.18",
"@react-navigation/native-stack": "6.11.0",
"@sentry/react-native": "6.5.0",
"@sentry/react-native": "^6.9.0",
"@suite-common/message-system": "workspace:*",
"@suite-common/wallet-config": "workspace:*",
"@suite-common/wallet-types": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion suite-native/state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@reduxjs/toolkit": "1.9.5",
"@sentry/react-native": "6.5.0",
"@sentry/react-native": "^6.9.0",
"@suite-common/analytics": "workspace:*",
"@suite-common/firmware": "workspace:*",
"@suite-common/logger": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion suite-native/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@mobily/ts-belt": "^3.13.1",
"@reduxjs/toolkit": "1.9.5",
"@sentry/react-native": "6.5.0",
"@sentry/react-native": "^6.9.0",
"@suite-common/suite-types": "workspace:*",
"@suite-common/wallet-core": "workspace:*",
"bs58": "^6.0.0",
Expand Down
Loading

0 comments on commit 1f54e33

Please sign in to comment.