Title: Make SvelteKit `sentryHandle` request handler a factory function · Issue #7951 · getsentry/sentry-javascript · GitHub
Open Graph Title: Make SvelteKit `sentryHandle` request handler a factory function · Issue #7951 · getsentry/sentry-javascript
X Title: Make SvelteKit `sentryHandle` request handler a factory function · Issue #7951 · getsentry/sentry-javascript
Description: Right now, the sentryHandle function is just a plain request handler. This comes the disadvantage that we cannot pass arguments to configure it, if we ever wanted to allow customization of its behaviour. Therefore, we should convert it t...
Open Graph Description: Right now, the sentryHandle function is just a plain request handler. This comes the disadvantage that we cannot pass arguments to configure it, if we ever wanted to allow customization of its beha...
X Description: Right now, the sentryHandle function is just a plain request handler. This comes the disadvantage that we cannot pass arguments to configure it, if we ever wanted to allow customization of its beha...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7951
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make SvelteKit `sentryHandle` request handler a factory function ","articleBody":"Right now, the `sentryHandle` function is just a plain request handler. This comes the disadvantage that we cannot pass arguments to configure it, if we ever wanted to allow customization of its behaviour. Therefore, we should convert it to a factory function that returns a handler:\r\n\r\n```js\r\n// hooks.server.js\r\n\r\n// old\r\nexport const handle = sequence(sentryHandle, /* other handlers */);\r\n\r\n// new\r\nexport const handle = sequence(sentryHandle(), /* other handlers */)\r\n\r\n// so that in the future we could do things like\r\nexport const handle = sequence(\r\n sentryHandle({ tracePageLoads: true, traceDataRequests: false }), \r\n /* other handlers */\r\n)\r\n``` \r\n\r\nWe'll do this right now to avoid legacy API before GA","author":{"url":"https://github.com/Lms24","@type":"Person","name":"Lms24"},"datePublished":"2023-04-25T08:26:06Z","url":"https://github.com/getsentry/sentry-javascript/issues/7951"}
| 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:8202865f-c392-002b-8d98-16a8b38fb47d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B970:2876DA:7AA876:A22B92:6B04CAD3 |
| html-safe-nonce | 8c022ac6fd85aa2abce4b92dd705a4e9dc1b016098cf1e492499eaf7219306cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTcwOjI4NzZEQTo3QUE4NzY6QTIyQjkyOjZCMDRDQUQzIiwidmlzaXRvcl9pZCI6IjYxMzQzOTc3MzIyMDQ2Mjg2OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e31a3e6d1ac2b68e7e01dda303b39479fc630ff61b845d9e7ad42fa8bd49c2a8 |
| hovercard-subject-tag | issue:1682685769 |
| 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/7951/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b79d9c44f48577f39b2a3c8147fceb86f42eb711ba497a7f6a5c67f34c229504/getsentry/sentry-javascript/issues/7951 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b79d9c44f48577f39b2a3c8147fceb86f42eb711ba497a7f6a5c67f34c229504/getsentry/sentry-javascript/issues/7951 |
| og:image:alt | Right now, the sentryHandle function is just a plain request handler. This comes the disadvantage that we cannot pass arguments to configure it, if we ever wanted to allow customization of its beha... |
| 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 | 27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d |
| 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 | 63dc19014c621c67306d7899c04c78dcd0d95803 |
| 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