File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- import { startSpan , setUser , type Span , init } from '@sentry/sveltekit' ;
1
+ import * as Sentry from '@sentry/sveltekit' ;
2
+ import { type Span } from '@sentry/sveltekit' ;
2
3
import type { User } from '$lib/stores/user' ;
3
4
import { dev } from '$app/environment' ;
4
5
import { PUBLIC_SENTRY_ENVIRONMENT } from '$env/static/public' ;
5
6
7
+ const { startSpan, setUser, init, rewriteFramesIntegration } = Sentry ;
8
+
6
9
export function initSentry ( ) {
7
10
init ( {
8
11
enabled : ! dev ,
9
12
dsn : 'https://a35bbd6688a3a8f76e4956c6871f414a@o4504644069687296.ingest.sentry.io/4505976067129344' ,
10
13
environment : PUBLIC_SENTRY_ENVIRONMENT ,
11
14
tracesSampleRate : 0.1 ,
12
- tracePropagationTargets : [ 'localhost' , / g i t b u t l e r \. c o m / i]
15
+ tracePropagationTargets : [ 'localhost' , / g i t b u t l e r \. c o m / i] ,
16
+ integrations : [ rewriteFramesIntegration ( ) ]
13
17
} ) ;
14
18
}
15
19
You can’t perform that action at this time.
0 commit comments