Title: SvelteKit SDK creates server transactions with `[Method] null` name · Issue #8199 · getsentry/sentry-javascript · GitHub
Open Graph Title: SvelteKit SDK creates server transactions with `[Method] null` name · Issue #8199 · getsentry/sentry-javascript
X Title: SvelteKit SDK creates server transactions with `[Method] null` name · Issue #8199 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8199
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SvelteKit SDK creates server transactions with `[Method] null` name","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/sveltekit\n\n### SDK Version\n\n7.53.0\n\n### Framework Version\n\nSvelteKit 1.x\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\nBasic SDK setup from wizard\n\n### Steps to Reproduce\n\n1. `npm create svelte@latest`\r\n2. `npx @sentry/wizard@latest -i sveltekit`\r\n3. `curl localhost:PORT/something`\n\n### Expected Result\n\nThree options here:\r\n\r\n1. The SDK discards transactions that don't have a matching route\r\n2. The SDK falls back to the raw URL (sets the source accordingly) and the txn shows as \u003c\u003cunparamterized>> in Sentry\r\n3. The SDK falls back to a \"unknown route\" transaction, sets the source as custom and sends it to Sentry where it will show up like a normal transaction\r\n\r\nI'm currently leaning towards option 1 because I don't see value in these transactions and it's the simplest course of action \r\n\n\n### Actual Result\n\nThe SDK sends a transaction with with a name like `GET|POST null` to Sentry, with source `route`\r\n\r\nThis happens because we determine the txn name with `event.route.id` which evaluates to `null`.","author":{"url":"https://github.com/Lms24","@type":"Person","name":"Lms24"},"datePublished":"2023-05-24T09:49:20Z","url":"https://github.com/getsentry/sentry-javascript/issues/8199"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a8aa845b-0986-a3dd-9d86-f08aceecaf9e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E712:AEAB2:760080:A61713:6B044D70 |
| html-safe-nonce | 3325d03442404b7c2667a95634a32b902e52fba1b86d6272238983a0b6cf2a55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzEyOkFFQUIyOjc2MDA4MDpBNjE3MTM6NkIwNDRENzAiLCJ2aXNpdG9yX2lkIjoiNjc4NzIzMDg2NzExNjAxOTA1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 45575f8dd90e765fd262e7a054f2bfef978df136a62395f42760551dcab19ce3 |
| hovercard-subject-tag | issue:1723601008 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/8199/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5d9fbc593bd403e503a6a806069cd97fad8fbd855034e96d20172cca7bda65d/getsentry/sentry-javascript/issues/8199 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5d9fbc593bd403e503a6a806069cd97fad8fbd855034e96d20172cca7bda65d/getsentry/sentry-javascript/issues/8199 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lms24 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 059f24c781e3a0d7df3f27a97da0e93fab06ae39 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width