Skip to content

fix(elysia): Report events as sentry.javascript.elysia - #25479

Open
isaacs wants to merge 1 commit into
developfrom
isaacschlueter/js-3580-elysia-events-report-as-sentryjavascriptbun
Open

isaacs wants to merge 1 commit into
developfrom
isaacschlueter/js-3580-elysia-events-report-as-sentryjavascriptbun

Conversation

@isaacs

@isaacs isaacs commented Oct 17, 2026

Copy link
Copy Markdown
Member

init() copied userOptions into options and then called applySdkMetadata() on userOptions. When the user passed no _metadata, the copy did not get the new metadata. @sentry/bun then set its own bun metadata on the copy. All Elysia events reported as sentry.javascript.bun.

Apply the metadata to options, the object passed to the Bun init(). The existing test mocked applySdkMetadata(), so it did not catch this. The new test uses the real function and checks the SDK name in the options passed to init().

Fixes #24045
Fixes JS-3580

`init()` copied `userOptions` into `options` and then called
`applySdkMetadata()` on `userOptions`. When the user passed no
`_metadata`, the copy did not get the new metadata. `@sentry/bun`
then set its own `bun` metadata on the copy. All Elysia events
reported as `sentry.javascript.bun`.

Apply the metadata to `options`, the object passed to the Bun
`init()`. The existing test mocked `applySdkMetadata()`, so it did
not catch this. The new test uses the real function and checks the
SDK name in the options passed to `init()`.

Fixes #24045
Fixes JS-3580

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@isaacs
isaacs requested a review from a team as a code owner October 17, 2026 19:47
@isaacs
isaacs requested review from chargome and s1gr1d and removed request for a team October 17, 2026 19:47
@linear-code

linear-code Bot commented Oct 17, 2026

Copy link
Copy Markdown

JS-3580

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Elysia events report as sentry.javascript.bun

1 participant