Title: Elysia events report as `sentry.javascript.bun` · Issue #24046 · getsentry/sentry-javascript · GitHub
Open Graph Title: Elysia events report as `sentry.javascript.bun` · Issue #24046 · getsentry/sentry-javascript
X Title: Elysia events report as `sentry.javascript.bun` · Issue #24046 · getsentry/sentry-javascript
Description: Running under both node and bun, with the built @sentry/elysia: sdk: {"name":"sentry.javascript.bun","version":"10.67.0", "packages":[{"name":"npm:@sentry/bun","version":"10.67.0"}]} sentry.javascript.elysia never appears. packages/elysi...
Open Graph Description: Running under both node and bun, with the built @sentry/elysia: sdk: {"name":"sentry.javascript.bun","version":"10.67.0", "packages":[{"name":"npm:@sentry/bun","version":"10.67.0"}]} sentry.javascr...
X Description: Running under both node and bun, with the built @sentry/elysia: sdk: {"name":"sentry.javascript.bun","version":"10.67.0", "packages":[{"name&q...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/24046
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Elysia events report as `sentry.javascript.bun`","articleBody":"Running under both node and bun, with the built `@sentry/elysia`:\n\n```\nsdk: {\"name\":\"sentry.javascript.bun\",\"version\":\"10.67.0\",\n \"packages\":[{\"name\":\"npm:@sentry/bun\",\"version\":\"10.67.0\"}]}\n```\n\n`sentry.javascript.elysia` never appears. `packages/elysia/src/sdk.ts:44`copies `userOptions` into `options` *before* calling `applySdkMetadata(userOptions, 'elysia', ...)`. When `userOptions._metadata` is undefined, `applySdkMetadata` creates a fresh `_metadata` on `userOptions`, which the already-made copy does not have. `initBun(options)` then applies its own `'bun'` metadata to the copy.\n\nThe Elysia SDK is invisible in SDK adoption telemetry, and support cannot tell Elysia reports from plain Bun ones.\n\n**Work item.** Call `applySdkMetadata(options, ...)` on the copy, or move the call above the spread. One-line fix. Add an assertion to `packages/elysia/test` that `event.sdk.name === 'sentry.javascript.elysia'`.\n\n**Prior art** the identical bug was already found and fixed one package over: [#15458](\u003chttps://github.com/getsentry/sentry-javascript/issues/15458>)/[#15459](\u003chttps://github.com/getsentry/sentry-javascript/pull/15459>) \"fix(bun): Includes correct sdk metadata\". That PR also added the SDK-metadata assertion to the Bun tests, which is the test to copy here.","author":{"url":"https://github.com/isaacs","@type":"Person","name":"isaacs"},"datePublished":"2026-09-04T02:53:54Z","url":"https://github.com/getsentry/sentry-javascript/issues/24046"}
| 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:1ef4f8f6-d284-0c28-fb86-bacbcd3fd771 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2AC:3F9E09:3F98256:5513967:6B040FA0 |
| html-safe-nonce | 3a1f3465a0377ab2c694d875dd3a486b73f01d8556d7cbdabf4caf2a8e9921ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkFDOjNGOUUwOTozRjk4MjU2OjU1MTM5Njc6NkIwNDBGQTAiLCJ2aXNpdG9yX2lkIjoiNzI3MjkyMDg5MTUyNzUzMjQ0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 19c18ae291141ec061d4d1b2e0560079743f43d25644af6bac0ef82adfee6043 |
| hovercard-subject-tag | issue:5343651410 |
| 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/24046/issue_layout |
| twitter:image | https://opengraph.githubassets.com/abf075d4cb46a813fe9170f01663ae6db3a1d7049c76db9811c92ab66eab4ef3/getsentry/sentry-javascript/issues/24046 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/abf075d4cb46a813fe9170f01663ae6db3a1d7049c76db9811c92ab66eab4ef3/getsentry/sentry-javascript/issues/24046 |
| og:image:alt | Running under both node and bun, with the built @sentry/elysia: sdk: {"name":"sentry.javascript.bun","version":"10.67.0", "packages":[{"name":"npm:@sentry/bun","version":"10.67.0"}]} sentry.javascr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | isaacs |
| 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