File tree 4 files changed +20
-10
lines changed 4 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 16
16
"@mdx-js/react" : " ^1.6.18" ,
17
17
"@sentry-internal/global-search" : " 0.1.3" ,
18
18
"@sentry/gatsby" : " ^7.36.0" ,
19
- "@sentry/tracing" : " ^7.36.0" ,
20
19
"@sentry/webpack-plugin" : " ^1.18.3" ,
21
20
"@types/dompurify" : " ^2.0.3" ,
22
21
"@types/node" : " ^12" ,
Original file line number Diff line number Diff line change
1
+ import * as Sentry from "@sentry/gatsby" ;
2
+
3
+ const activeEnv =
4
+ process . env . GATSBY_ENV || process . env . NODE_ENV || "development" ;
5
+
6
+ Sentry . init ( {
7
+ debug : true ,
8
+ dsn : process . env . SENTRY_DSN ,
9
+ release : process . env . SENTRY_RELEASE ,
10
+ integrations : [
11
+ new Sentry . Replay ( {
12
+ maskAllText : true ,
13
+ blockAllMedia : true ,
14
+ } ) ,
15
+ ] ,
16
+ tracesSampleRate : activeEnv === "development" ? 0 : 1 ,
17
+ replaysSessionSampleRate : activeEnv === "development" ? 0 : 0.1 ,
18
+ replaysOnErrorSampleRate : activeEnv === "development" ? 0 : 1 ,
19
+ } ) ;
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ import resolveOpenAPI from "./utils/resolveOpenAPI";
6
6
const packages = new PackageRegistry ( ) ;
7
7
const apps = new AppRegistry ( ) ;
8
8
9
- const activeEnv =
10
- process . env . GATSBY_ENV || process . env . NODE_ENV || "development" ;
11
-
12
9
const root = `${ __dirname } /../..` ;
13
10
14
11
process . env . DISABLE_THUMBNAILS = process . env . DISABLE_THUMBNAILS || "0" ;
@@ -83,11 +80,6 @@ const getPlugins = () => {
83
80
const plugins = [
84
81
{
85
82
resolve : "@sentry/gatsby" ,
86
- options : {
87
- dsn : process . env . SENTRY_DSN ,
88
- release : process . env . SENTRY_RELEASE ,
89
- tracesSampleRate : activeEnv === "development" ? 0 : 1 ,
90
- } ,
91
83
} ,
92
84
"gatsby-plugin-sharp" ,
93
85
"gatsby-plugin-sass" ,
Original file line number Diff line number Diff line change 2204
2204
"@sentry/types" "7.36.0"
2205
2205
"@sentry/utils" "7.36.0"
2206
2206
2207
- "@sentry/
[email protected] "
, "@sentry/tracing@^7.36.0" :
2207
+
2208
2208
version "7.36.0"
2209
2209
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-7.36.0.tgz#aa38319ed07f3b642134cf47da81f43df7835629"
2210
2210
integrity sha512-5R5mfWMDncOcTMmmyYMjgus1vZJzIFw4LHaSbrX7e1IRNT/6vFyNeVxATa2ePXb9mI3XHo5f2p7YrnreAtaSXw==
You can’t perform that action at this time.
0 commit comments