Sentry Integration OneKey uses Sentry for error tracking across all platforms. Architecture Overview apps/ ├── desktop/app/sentry.ts # Desktop main process ├── ext/ # Extension (uses shared) ├── mobile/ # Mobile (uses shared) └── web/ # Web (uses shared) packages/shared/src/modules3rdParty/sentry/ ├── index.ts # Web/Extension entry ├── index.native.ts # React Native entry ├── index.desktop.ts # Desktop renderer entry ├── basicOptions.ts # Shared config & error filtering └── instance.ts # Sentry client instance Platform Detection import platformEnv from '@onekeyhq/shared/src/platformEnv' ; platformEnv . isDesktop // Electron desktop app platformEnv . isNative // React Native (iOS/Android) platformEnv . isWeb // Web browser platformEnv . isExtension // Browser extension platformEnv . isWebEmbed // Embedded web components Common Tasks Filter/Ignore Errors See: references/rules/ignoring-errors.md Key file: packages/shared/src/modules3rdParty/sentry/basicOptions.ts Analyze Crash Reports Get crash details from Sentry dashboard Identify error type, message, and stack trace Check platform-specific context Use
1k-sentry
安装
npx skills add https://github.com/onekeyhq/app-monorepo --skill 1k-sentry