File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,20 @@ Sentry.init({
4
4
// There isn't any way to get the dsn from env var here
5
5
environment : useRuntimeConfig ( ) . public . sentry . environment ,
6
6
dsn : useRuntimeConfig ( ) . public . sentry . dsn ,
7
+ // This sets the sample rate to be 10%. You may want this to be 100% while
8
+ // in development and sample at a lower rate in production
9
+ replaysSessionSampleRate : 0.1 ,
10
+
11
+ // If the entire session is not sampled, use the below sample rate to sample
12
+ // sessions when an error occurs.
13
+ replaysOnErrorSampleRate : 1.0 ,
14
+
15
+ integrations : [
16
+ Sentry . replayIntegration ( {
17
+ // Additional SDK configuration goes in here, for example:
18
+ maskAllText : true ,
19
+ blockAllMedia : true ,
20
+ } ) ,
21
+ Sentry . browserTracingIntegration ( ) ,
22
+ ] ,
7
23
} )
You can’t perform that action at this time.
0 commit comments