Skip to content

Add SvelteKit client-side error monitoring instrumentation #7402

Closed
@Lms24

Description

@Lms24

To get error monitoring for the client-side of SvelteKit apps, we need to ensure that all errors are caught:

To wrap the handleError hook, I already created a PoC that we can probably base our implementation on. For now it's enough to export this wrapper to let users add it manually. Later on, we can add auto-wrapping functionality like in NextJS.

### Tasks
- [ ] https://github.com/getsentry/sentry-javascript/pull/7406
- [x] Ensure default integrations capture errors not caught by the `handleError` hook
- [x] [Needs Research] Should we Instrument [`+error.svelte`](https://kit.svelte.dev/docs/routing#error) pages?

Metadata

Metadata

Assignees

Labels

Package: sveltekitIssues related to the Sentry SvelteKit SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions