Title: Add SvelteKit SDK package and SDK initialization · Issue #7348 · getsentry/sentry-javascript · GitHub
Open Graph Title: Add SvelteKit SDK package and SDK initialization · Issue #7348 · getsentry/sentry-javascript
X Title: Add SvelteKit SDK package and SDK initialization · Issue #7348 · getsentry/sentry-javascript
Description: 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) conf...
Open Graph Description: 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 se...
X Description: 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 provid...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7348
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add SvelteKit SDK package and SDK initialization","articleBody":"First Step to the new SvelteKit SDK: Setting up the package and figuring out how we can provide the best SDK init DX. \r\n\r\nIdeally, 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.\r\n\r\n```[tasklist]\r\n- [ ] #7365 \r\n- [ ] #7377\r\n- [ ] #7391 \r\n- [ ] https://github.com/getsentry/sentry-javascript/pull/7408\r\n```\r\n\r\n### Alternative Approach:\r\nIf the \"entry point injection\" doesn't work, we can still resort to initializing the SDKs in [`hooks.(client|server).ts`](https://kit.svelte.dev/docs/hooks) files, which are part of SvelteKit and initialize very early in the life cycle. \r\n\r\nOnce we have a working auto-wrapping approach, we could theoretically also explore injecting the init call into the hooks files.\r\n","author":{"url":"https://github.com/Lms24","@type":"Person","name":"Lms24"},"datePublished":"2023-03-06T16:22:17Z","url":"https://github.com/getsentry/sentry-javascript/issues/7348"}
| 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:fb38e07c-32f2-b568-039b-34039c0baa7b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C57E:171D41:234DA1:3191B5:6B0468FF |
| html-safe-nonce | 9c6f293830a938d19ddbc84354eef306b816db6fe579c50988ba0c3bd8b3b6ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTdFOjE3MUQ0MToyMzREQTE6MzE5MUI1OjZCMDQ2OEZGIiwidmlzaXRvcl9pZCI6IjI1NTgwNDEwODExNTM2MTIwMzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ee30b2119988f2eaaaa3dc7573ae99e569cf6fced178f05789a467f5c9131a4c |
| hovercard-subject-tag | issue:1611785465 |
| 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/7348/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6226a98328a70bed2eb1feb6637d2e942c628a2610f474a6c8bf2926ff615caa/getsentry/sentry-javascript/issues/7348 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6226a98328a70bed2eb1feb6637d2e942c628a2610f474a6c8bf2926ff615caa/getsentry/sentry-javascript/issues/7348 |
| og:image:alt | 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 se... |
| 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 | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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