10000 Instrument SvelteKit Form Actions · Issue #16323 · getsentry/sentry-javascript · GitHub
[go: up one dir, main page]

Skip to content

Instrument SvelteKit Form Actions #16323

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

Open
Lms24 opened this issue May 19, 2025 · 0 comments
Open

Instrument SvelteKit Form Actions #16323

Lms24 opened this issue May 19, 2025 · 0 comments

Comments

@Lms24
Copy link
Member
Lms24 commented May 19, 2025

Problem Statement

Today, we don't provide an easy wrapper to start spans for sveltekit form actions. Therefore, users would have to manually wrap spans around their actions which can become quite verbose and tedious.

Solution Brainstorm

We should add instrumentation for this in two steps:

  1. Export a wrapper that users can call manually (analogously to our server route helper)
  2. Auto-wrap the actions export, just like we do it with load functions

Instrumentation should essentially wrap the actions object, for both named as well as default actions.

Things to consider:

  • start span (probably with op function.sveltekit.action.(default|<name>) but concrete naming tbd
  • can we attach the return value?
  • users can redirect -- our wrapper needs to rethrow this (should work by default, just mentioning it)
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
0