Skip to content

Commit f5d4bd6

Browse files
committed
meta(changelog): Update changelog for 10.8.0
1 parent dfdc3b0 commit f5d4bd6

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,48 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

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))
41+
42+
<details>
43+
<summary> <strong>Internal Changes</strong> </summary>
44+
45+
- test(profiling): Add tests for current state of profiling ([#17470](https://github.com/getsentry/sentry-javascript/pull/17470))
46+
47+
</details>
48+
749
## 10.7.0
850

951
### Important Changes

0 commit comments

Comments
 (0)