forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1import {init} from '@sentry/react-native'
2
3import * as env from '#/env'
4
5init({
6 enabled: !env.IS_DEV && !!env.SENTRY_DSN,
7 autoSessionTracking: false,
8 dsn: env.SENTRY_DSN,
9 debug: false, // If `true`, Sentry will try to print out useful debugging information if something goes wrong with sending the event. Set it to `false` in production
10 environment: env.ENV,
11 dist: env.BUNDLE_IDENTIFIER,
12 release: env.RELEASE_VERSION,
13 ignoreErrors: [
14 /*
15 * Unknown internals errors
16 */
17 `t is not defined`,
18 `Can't find variable: t`,
19 /*
20 * Un-useful errors
21 */
22 `Network request failed`,
23 ],
24 /**
25 * Does not affect traces of error events or other logs, just disables
26 * automatically attaching stack traces to events. This helps us group events
27 * and prevents explosions of separate issues.
28 *
29 * @see https://docs.sentry.io/platforms/react-native/configuration/options/#attach-stacktrace
30 */
31 attachStacktrace: false,
32 sampleRate: env.IS_INTERNAL ? 1.0 : 0.1,
33})