Skip to content

feat(sveltekit): Update scope transactionName when handling server-side request #11511

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

Merged

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Apr 9, 2024

This PR updates the scope's transactionName in the sentryHandle instrumentation that's always invoked when a request is made to the SvelteKit server.

For now, I opted to not set the transactionName to unknown route URLs by default (i.e. a request that doesn't match a known server endpoint/route). Users can opt into also handling unknown routes at which point we'll also set the transactionName for such routes.

ref #10846

@Lms24 Lms24 force-pushed the lms/feat-sveltekit-server-update-scope-transactionname branch from 13c44c6 to 2f6a459 Compare April 9, 2024 14:11
@Lms24 Lms24 requested review from mydea and AbhiPrasad April 9, 2024 14:13
@Lms24 Lms24 self-assigned this Apr 9, 2024
Copy link
Contributor

github-actions bot commented Apr 9, 2024

size-limit report 📦

Path Size
@sentry/browser 22.07 KB (-0.11% 🔽)
@sentry/browser (incl. Tracing) 31.69 KB (-0.08% 🔽)
@sentry/browser (incl. Tracing, Replay) 66.89 KB (-0.04% 🔽)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 60.49 KB (-0.05% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) 70.72 KB (-0.04% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) 75.65 KB (-0.03% 🔽)
@sentry/browser (incl. Feedback) 30.84 KB (-0.08% 🔽)
@sentry/browser (incl. Feedback, Feedback Modal) 30.86 KB (-0.08% 🔽)
@sentry/browser (incl. Feedback, Feedback Modal, Feedback Screenshot) 30.87 KB (-0.07% 🔽)
@sentry/browser (incl. sendFeedback) 26.86 KB (-0.1% 🔽)
@sentry/react 24.75 KB (-0.1% 🔽)
@sentry/react (incl. Tracing) 34.59 KB (-0.07% 🔽)
@sentry/vue 25.5 KB (-0.12% 🔽)
@sentry/vue (incl. Tracing) 33.42 KB (-0.08% 🔽)
@sentry/svelte 22.2 KB (-0.1% 🔽)
CDN Bundle 24.08 KB (-0.1% 🔽)
CDN Bundle (incl. Tracing) 32.63 KB (-0.09% 🔽)
CDN Bundle (incl. Tracing, Replay) 66.34 KB (-0.05% 🔽)
CDN Bundle (incl. Tracing, Replay, Feedback) 71.6 KB (-0.04% 🔽)
CDN Bundle - uncompressed 71.62 KB (-0.07% 🔽)
CDN Bundle (incl. Tracing) - uncompressed 97.67 KB (-0.05% 🔽)
CDN Bundle (incl. Tracing, Replay) - uncompressed 207.06 KB (-0.03% 🔽)
@sentry/nextjs (client) 33.78 KB (-0.07% 🔽)
@sentry/sveltekit (client) 32.21 KB (-0.09% 🔽)
@sentry/node 120.03 KB (-0.03% 🔽)

@Lms24 Lms24 merged commit 5bcd1d8 into develop Apr 9, 2024
@Lms24 Lms24 deleted the lms/feat-sveltekit-server-update-scope-transactionname branch April 9, 2024 15:04
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
…de request (getsentry#11511)

Update the scope's `transactionName` in the `sentryHandle`
instrumentation that's always invoked when a request is made to the
SvelteKit server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants