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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,48 @@
4
4
5
5
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
6
6
7
+
## 10.8.0
8
+
9
+
### Important Changes
10
+
11
+
- **feat(sveltekit): Add Compatibility for builtin SvelteKit Tracing ([#17423](https://github.com/getsentry/sentry-javascript/pull/17423))**
12
+
13
+
This release makes the `@sentry/sveltekit` SDK compatible with SvelteKit's native [observability support](https://svelte.dev/docs/kit/observability) introduced in SvelteKit version `2.31.0`.
14
+
If you enable both, instrumentation and tracing, the SDK will now initialize early enough to set up additional instrumentation like database queries and it will pick up spans emitted from SvelteKit.
15
+
16
+
We will follow up with docs how to set up the SDK soon.
17
+
For now, If you're on SvelteKit version `2.31.0` or newer, you can easily opt into the new feature:
18
+
19
+
1. Enable [experimental tracing and instrumentation support](https://svelte.dev/docs/kit/observability) in `svelte.config.js`:
20
+
2. Move your `Sentry.init()` call from `src/hooks.server.(js|ts)` to the new `instrumentation.server.(js|ts)` file:
21
+
22
+
```ts
23
+
// instrumentation.server.ts
24
+
import * as Sentry from '@sentry/sveltekit';
25
+
26
+
Sentry.init({
27
+
dsn: '...',
28
+
// rest of your config
29
+
});
30
+
```
31
+
32
+
The rest of your Sentry config in `hooks.server.ts` (`sentryHandle` and `handleErrorWithSentry`) should stay the same.
33
+
34
+
If you prefer to stay on the hooks-file based config for now, the SDK will continue to work as previously.
35
+
36
+
Thanks to the Svelte team and @elliott-with-the-longest-name-on-github for implementing observability support and for reviewing our PR!
37
+
38
+
### Other Changes
39
+
40
+
- fix(react): Avoid multiple name updates on navigation spans ([#17438](https://github.com/getsentry/sentry-javascript/pull/17438))
0 commit comments