Title: Integrations not working for Bun · Issue #14202 · getsentry/sentry-javascript · GitHub
Open Graph Title: Integrations not working for Bun · Issue #14202 · getsentry/sentry-javascript
X Title: Integrations not working for Bun · Issue #14202 · 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/14202
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Integrations not working for Bun","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues [https://github.com/getsentry/sentry-javascript/issues](\u003chttps://github.com/getsentry/sentry-javascript/issues>)\n- [X] I have reviewed the documentation [https://docs.sentry.io/](\u003chttps://docs.sentry.io/>)\n- [X] I am using the latest SDK release [https://github.com/getsentry/sentry-javascript/releases](\u003chttps://github.com/getsentry/sentry-javascript/releases>)\n\n### How do you use Sentry?\n\nSentry Saas ([sentry.io](\u003chttp://sentry.io>))\n\n### Which SDK are you using?\n\n@sentry/bun\n\n### SDK Version\n\n8.37.1\n\n### Framework Version\n\n*No response*\n\n### Link to Sentry event\n\n*No response*\n\n### Reproduction Example/SDK Setup\n\nHey, \u003cbr>which integrations should I expect to work in bun? So far only manual instrumentation seems to be working. \u003cbr>Is this expected behavior? If so, a few more notes on that would be appreciated in the documentation.\n\nBun\n\n```\nimport * as Sentry from \"@sentry/bun\";\n\n// Ensure to call this before importing any other modules!\nSentry.init({\n\tdsn: DSN,\n\tdebug: true,\n\t// Add Performance Monitoring by setting tracesSampleRate\n\t// Set tracesSampleRate to 1.0 to capture 100% of transactions\n\t// We recommend adjusting this value in production\n\ttracesSampleRate: 1.0,\n});\n```\n\n```\nimport \"./instrument.ts\";\nimport * as Sentry from \"@sentry/bun\";\n\nawait Sentry.startSpan(\n\t{\n\t\top: \"test\",\n\t\tname: \"My First Test Transaction in bun\",\n\t},\n\tasync () => {\n\t\tawait fetch(`https://google.com`);\n\t},\n);\n\nconst sleep = () => new Promise((res) => setTimeout(() => res(\"hi\"), 3000));\n\nawait sleep();\nthrow new Error(\"I just crashed Bun\");\n`\n\nNode\n`\nimport * as Sentry from \"@sentry/node\";\n\n// Ensure to call this before importing any other modules!\nSentry.init({\n\tdsn: DSN,\n\tdebug: true,\n\t// Add Performance Monitoring by setting tracesSampleRate\n\t// Set tracesSampleRate to 1.0 to capture 100% of transactions\n\t// We recommend adjusting this value in production\n\ttracesSampleRate: 1.0,\n});\n```\n\n### Steps to Reproduce\n\n[https://github.com/doepnern/sentry-node-bun-comparison](\u003chttps://github.com/doepnern/sentry-node-bun-comparison>)\n\n### Expected Result\n\n## Expected http instrumentation to work, according to docs (See result for node below)\n\n[https://docs.sentry.io/platforms/javascript/guides/bun/configuration/integrations/http/](\u003chttps://docs.sentry.io/platforms/javascript/guides/bun/configuration/integrations/http/>)\n\n\n\n### Actual Result\n\n\n\n## error handling is noted as not working in the npm package page, so i guess that is to be expected\n\n","author":{"url":"https://github.com/doepnern","@type":"Person","name":"doepnern"},"datePublished":"2024-11-07T09:01:30Z","url":"https://github.com/getsentry/sentry-javascript/issues/14202"}
| 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:78df3e8d-bb00-ba91-db15-c49057ea3214 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE2A:373A8C:29375A1:357F93C:6B0408BA |
| html-safe-nonce | bb00b31923390b749e9eeb1abd70fbd3ce3cfae077522ce6084c623e02653244 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTJBOjM3M0E4QzoyOTM3NUExOjM1N0Y5M0M6NkIwNDA4QkEiLCJ2aXNpdG9yX2lkIjoiNzE1NzQzMDM1NDgwOTQ1NjgyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 53e7b8d22867827355213e2d1dea16274d09bc872a02f267b6beb67ee3cc0f1c |
| hovercard-subject-tag | issue:2640339641 |
| 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/14202/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b5a47f65b4944913e6db74a55dc5c03ab39ce99a2e4a36245a9c591f355a474/getsentry/sentry-javascript/issues/14202 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b5a47f65b4944913e6db74a55dc5c03ab39ce99a2e4a36245a9c591f355a474/getsentry/sentry-javascript/issues/14202 |
| 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 | doepnern |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| 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