Skip to content
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

Add SvelteKit SDK package and SDK initialization #7348

Closed
4 tasks done
Tracked by #6692
Lms24 opened this issue Mar 6, 2023 · 0 comments
Closed
4 tasks done
Tracked by #6692

Add SvelteKit SDK package and SDK initialization #7348

Lms24 opened this issue Mar 6, 2023 · 0 comments
Assignees

Comments

@Lms24
Copy link
Member

Lms24 commented Mar 6, 2023

First Step to the new SvelteKit SDK: Setting up the package and figuring out how we can provide the best SDK init DX.

Ideally, we'd like to achieve similar DX as in the NextJS SDK: Users provide sentry.(server|client).config.(ts|js) config files with a Sentry.init call to the respective SDK. These files are added to the entry points of the client/server bundles and that's how we initialize the SDK as early as possible in the application life cycle.

Alternative Approach:

If the "entry point injection" doesn't work, we can still resort to initializing the SDKs in hooks.(client|server).ts files, which are part of SvelteKit and initialize very early in the life cycle.

Once we have a working auto-wrapping approach, we could theoretically also explore injecting the init call into the hooks files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant