Title: Elysia events report as `sentry.javascript.bun` · Issue #24045 · getsentry/sentry-javascript · GitHub
Open Graph Title: Elysia events report as `sentry.javascript.bun` · Issue #24045 · getsentry/sentry-javascript
X Title: Elysia events report as `sentry.javascript.bun` · Issue #24045 · 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/24045
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@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:47:55Z","url":"https://github.com/getsentry/sentry-javascript/issues/24045"}
| 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:c155a3b0-fcfa-566e-b17f-5a1380ae692e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A38A:57C3A:1B854D:264702:6B040627 |
| html-safe-nonce | 8976b658c66c9528eae9cd4f788284b96cc5623c164d0b16c589f3c7441d7472 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzhBOjU3QzNBOjFCODU0RDoyNjQ3MDI6NkIwNDA2MjciLCJ2aXNpdG9yX2lkIjoiNTQ4NjgxOTYwNTc0MzkyODg3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bea5eb2f8be02e0eeff2d0bc46b1a71067c4d25ca47547d9bcb0933bd4c84e9e |
| hovercard-subject-tag | issue:5343612735 |
| 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/24045/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8160ad95f3a7bd36ecf9998e764050bcae3433bd84997aeeca1d267bcaadb94e/getsentry/sentry-javascript/issues/24045 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8160ad95f3a7bd36ecf9998e764050bcae3433bd84997aeeca1d267bcaadb94e/getsentry/sentry-javascript/issues/24045 |
| 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