- Initialize @sentry/react-native with dedicated mobile project DSN - Wrap root layout with Sentry.wrap() for unhandled error capture - Configure Sentry plugin with org (trails-qq) and project (mobile) for source map uploads during EAS builds - Disabled in dev, full tracing in production Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
13 lines
328 B
TypeScript
13 lines
328 B
TypeScript
import * as Sentry from "@sentry/react-native";
|
|
|
|
const SENTRY_DSN = "https://af50ac7aea803216adbe21e9dd4b896b@o4509530546634752.ingest.de.sentry.io/4511209742532688";
|
|
|
|
export function initSentry() {
|
|
Sentry.init({
|
|
dsn: SENTRY_DSN,
|
|
tracesSampleRate: __DEV__ ? 0 : 1.0,
|
|
enabled: !__DEV__,
|
|
});
|
|
}
|
|
|
|
export { Sentry };
|