-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] add @sentry/svelte
import for clarity
#8343
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you! I'm not sure this is the right package to use though — it looks like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I'm working on the Sentry JavaScript SDKs. We really appreciate the shout out on the SvelteKit docs and I think it's great that you want to add more detailed instructions how to use Sentry.
Just a couple of notes:
- As correctly pointed out by @Rich-Harris,
@sentry/svelte
is only meant for Svelte apps running in the browser (i.e. not the server part of SvelteKit apps). Instead, you can use@sentry/node
on the server side. - Just calling
Sentry.captureException
isn't enough, both Sentry SDKs need to be initialized by callingSentry.init
.
Coincidentally, I recently started looking into using Sentry in SvelteKit and posted some primary instructions in our GH discussion about SvelteKit support. We'll eventually create a proper SvelteKit SDK but these instructions can be seen as a starting point what people can already do with currently available Sentry SDKs. Feel free to take a look for more details. Also we always appreciate feedback and input ;)
Lmk if you have additional questions, happy to help!
From my research, it seems that Sentry support for SvelteKit is currently under trial. The server side seems to work on node by using I thought about adding this to the documentation so as not to confuse users when using Sentry with SvelteKit, but I don't know what to do... |
Co-authored-by: Lukas Stracke <[email protected]>
Co-authored-by: Lukas Stracke <[email protected]>
Co-authored-by: Lukas Stracke <[email protected]>
@Rich-Harris @Lms24 I've applied the suggested changes! |
Co-authored-by: Lukas Stracke <[email protected]>
Thank you @Lms24 — just to be sure, will |
@Rich-Harris unfortunately not yet. We're working on compatibility with these environments (getsentry/sentry-javascript#5611) but no concrete time frame yet. |
thanks! |
This addition makes it easier to see that Sentry is providing Svelte SDK.