Title: Default setting for autoInstrumentation.requestHandler as true can truncate MDX output in Astro · Issue #9985 · getsentry/sentry-javascript · GitHub
Open Graph Title: Default setting for autoInstrumentation.requestHandler as true can truncate MDX output in Astro · Issue #9985 · getsentry/sentry-javascript
X Title: Default setting for autoInstrumentation.requestHandler as true can truncate MDX output in Astro · Issue #9985 · 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/9985
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Default setting for autoInstrumentation.requestHandler as true can truncate MDX output in Astro","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/browser\n\n### SDK Version\n\n7.91.0\n\n### Framework Version\n\nAstro 4.0.7\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```js\r\nexport default defineConfig({\r\n integrations: [\r\n mdx(),\r\n sentry({\r\n debug: true,\r\n enabled: process.env.NODE_ENV === 'production',\r\n dsn: '...',\r\n sourceMapsUploadOptions: {\r\n project: 'letschurch-astro',\r\n authToken: process.env.SENTRY_AUTH_TOKEN,\r\n },\r\n autoInstrumentation: {\r\n requestHandler: true,\r\n },\r\n }),\r\n ],\r\n output: 'server',\r\n adapter: node({\r\n mode: 'standalone',\r\n }),\r\n});\r\n```\n\n### Steps to Reproduce\n\nI am unable to reproduce this issue in isolation and I am seeking further debugging steps.\r\n\r\nIn my project when I have `autoInstrumentation.requestHandler` set to `true` (either as above, _or_ by not specifying `autoInstrumentation` at all and letting the default value take effect) mdx pages are truncated. Short pages are blank, and long pages have the end cut off.\r\n\r\nThis does not happen with md or astro pages, only mdx.\n\n### Expected Result\n\nThe following screenshots are from the end of a long mdx page when `autoInstrumentation.requestHandler` is set to `false`:\r\n\r\n\u003cimg width=\"344\" alt=\"image\" src=\"https://github.com/getsentry/sentry-javascript/assets/174864/cd5b0c34-dc2b-4954-a89d-8c4170ee8c78\">\u003cbr />\r\n\r\n\u003cimg width=\"306\" alt=\"image\" src=\"https://github.com/getsentry/sentry-javascript/assets/174864/571e4163-bbec-4714-8389-416f4d315eda\">\r\n\n\n### Actual Result\n\nThese screenshots are from the end of that same long mdx page when `autoInstrumentation.requestHandler` is set to `true` (or unspecified):\r\n\r\n\u003cimg width=\"94\" alt=\"image\" src=\"https://github.com/getsentry/sentry-javascript/assets/174864/35a40ac5-5524-4332-83ed-0b4266b5edf3\">\u003cbr />\r\n \r\n\u003cimg width=\"305\" alt=\"image\" src=\"https://github.com/getsentry/sentry-javascript/assets/174864/3be58e21-aeed-43e5-88c6-1d0d64cdf15f\">","author":{"url":"https://github.com/knpwrs","@type":"Person","name":"knpwrs"},"datePublished":"2023-12-27T15:53:00Z","url":"https://github.com/getsentry/sentry-javascript/issues/9985"}
| 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:e546f1cd-d6bf-bbca-6ff6-44ab0d08bb67 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CADA:B0736:48116A:66BE8A:6B04686F |
| html-safe-nonce | a663d7b2a01068639283d724a4c65b4170412489da523272cec78e800ed3767e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQURBOkIwNzM2OjQ4MTE2QTo2NkJFOEE6NkIwNDY4NkYiLCJ2aXNpdG9yX2lkIjoiNTg5MjI3MDMwODEwMjI2OTAzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7c25c84c92d3a94f482ec8af4d5d8276991d7ecad448cdb5938c5d1ba3aa213a |
| hovercard-subject-tag | issue:2057527869 |
| 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/9985/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0236cb555f4a01917f10d69475f3772063cfdc77f1b3c6effd8dbe322cd6e8c5/getsentry/sentry-javascript/issues/9985 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0236cb555f4a01917f10d69475f3772063cfdc77f1b3c6effd8dbe322cd6e8c5/getsentry/sentry-javascript/issues/9985 |
| 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 | knpwrs |
| 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