You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -118,6 +122,7 @@ The Sentry SvelteKit SDK mostly relies on [SvelteKit Hooks](https://kit.svelte.d
118
122
4. Add our request handler to the `handle` hook in `hooks.server.ts`:
119
123
120
124
```javascript
125
+
// hooks.server.(js|ts)
121
126
import { sentryHandle } from'@sentry/sveltekit';
122
127
123
128
exportconsthandle= sentryHandle;
@@ -131,6 +136,7 @@ The Sentry SvelteKit SDK mostly relies on [SvelteKit Hooks](https://kit.svelte.d
131
136
5. To catch errors and performance data in your universal `load` functions (e.g. in `+page.(js|ts)`), wrap our `wrapLoadWithSentry` function around your load code:
@@ -141,6 +147,7 @@ The Sentry SvelteKit SDK mostly relies on [SvelteKit Hooks](https://kit.svelte.d
141
147
6. To catch errors and performance data in your server `load`functions (e.g. in`+page.server.(js|ts)`), wrap our `wrapServerLoadWithSentry`function around your load code:
142
148
143
149
```javascript
150
+
// +page.server.(js|ts)
144
151
import { wrapServerLoadWithSentry } from '@sentry/sveltekit';
0 commit comments