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: packages/sveltekit/README.md
+49-30Lines changed: 49 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,17 @@ TODO: No docs yet, comment back in once we have docs
19
19
20
20
## SDK Status
21
21
22
-
This SDK is currently in **Alpha state** and we're still experimenting with APIs and functionality. We therefore make no guarantees in terms of semver or breaking changes. If you want to try this SDK and come across a problem, please open a [GitHub Issue](https://github.com/getsentry/sentry-javascript/issues/new/choose).
22
+
This SDK is currently in **Alpha state** and we're still experimenting with APIs and functionality.
23
+
We therefore make no guarantees in terms of semver or breaking changes.
24
+
If you want to try this SDK and come across a problem, please open a [GitHub Issue](https://github.com/getsentry/sentry-javascript/issues/new/choose).
23
25
24
26
## Compatibility
25
27
26
28
Currently, the minimum supported version of SvelteKit is `1.0.0`.
27
29
28
30
## General
29
31
30
-
This package is a wrapper around `@sentry/node` for the server and `@sentry/svelte` for the client, with added functionality related to SvelteKit.
32
+
This package is a wrapper around `@sentry/node` for the server and `@sentry/svelte` for the client side, with added functionality related to SvelteKit.
31
33
32
34
## Usage
33
35
@@ -55,72 +57,89 @@ Although the SDK is not yet stable, you're more than welcome to give it a try an
55
57
56
58
Sentry.init({
57
59
dsn:'__DSN__',
58
-
60
+
traceSampleRate:1.0,
59
61
// For instance, initialize Session Replay:
60
62
replaysSessionSampleRate:0.1,
61
63
replaysOnErrorSampleRate:1.0,
62
64
integrations: [newSentry.Replay()]
63
65
});
64
66
```
65
67
66
-
4. Add our `withSentryViteConfig` wrapper around your Vite config so that the Sentry SDK is added to your application in `vite.config.(js|ts)`:
8. 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:
9. 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:
129
+
130
+
```javascript
131
+
import { wrapServerLoadWithSentry } from '@sentry/sveltekit';
This SDK is still under active development and several features are missing.
118
141
Take a look at our [SvelteKit SDK Development Roadmap](https://github.com/getsentry/sentry-javascript/issues/6692) to follow the progress:
119
142
120
-
-**Performance monitoring** is not yet fully supported.
121
-
You can add the `BrowserTracing` integration but proper instrumentation for routes, page loads and navigations is still missing.
122
-
This will be addressed next, as we release the next alpha builds.
123
-
124
143
- **Source Maps** upload is not yet working correctly.
125
144
We already investigated [some options](https://github.com/getsentry/sentry-javascript/discussions/5838#discussioncomment-4696985) but uploading source maps doesn't work automtatically out of the box yet.
126
145
This will be addressed next, as we release the next alpha builds.
@@ -129,5 +148,5 @@ Take a look at our [SvelteKit SDK Development Roadmap](https://github.com/getsen
129
148
We haven't yet tested other platforms like Vercel.
130
149
This is on our roadmap but it will come at a later time.
131
150
132
-
- We're aiming to **simplify SDK setup** in the future so that you don't have to go in and manually add our wrappers to all your `load` functions and hooks.
151
+
- We're aiming to **simplify SDK setup** in the future so that you don't have to go in and manually add our wrappers to all your `load` functions.
133
152
This will be addressed once the SDK supports all Sentry features.
0 commit comments