Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"devDependencies": {
"@biomejs/biome": "2.3.8",
"@sentry/api": "^0.1.0",
"@sentry/bun": "10.38.0",
"@sentry/bun": "10.39.0",
"@sentry/esbuild-plugin": "^2.23.0",
"@sentry/node": "10.38.0",
"@sentry/node": "10.39.0",
"@stricli/auto-complete": "^1.2.4",
"@stricli/core": "^1.2.4",
"@types/bun": "latest",
Expand Down Expand Up @@ -62,7 +62,6 @@
},
"packageManager": "bun@1.3.9",
"patchedDependencies": {
"@stricli/core@1.2.5": "patches/@stricli%2Fcore@1.2.5.patch",
"@sentry/core@10.38.0": "patches/@sentry%2Fcore@10.38.0.patch"
"@stricli/core@1.2.5": "patches/@stricli%2Fcore@1.2.5.patch"
}
}
91 changes: 0 additions & 91 deletions patches/@sentry%2Fcore@10.38.0.patch

This file was deleted.

15 changes: 0 additions & 15 deletions src/lib/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,21 +214,6 @@ export function initSentry(enabled: boolean): Sentry.BunClient | undefined {
const isBun = typeof process.versions.bun !== "undefined";
const runtime = isBun ? "bun" : "node";

// Fix runtime context: @sentry/bun v10 delegates to @sentry/node's NodeClient,
// which always overrides runtime to { name: 'node', version: process.version }.
// Under Bun, process.version returns the Node.js compat version (e.g. v24.3.0),
// not the Bun version. Override it so event.contexts.runtime is correct and
// Sentry's server-side tag promotion creates an accurate 'runtime' tag.
// TODO: Remove once fixed upstream: https://github.com/getsentry/sentry-javascript/issues/19269
if (isBun) {
// biome-ignore lint/suspicious/noExplicitAny: accessing internal SDK option not exposed in NodeClientOptions
const options = client.getOptions() as any;
options.runtime = {
name: "bun",
version: process.versions.bun as string,
};
}

// Tag whether running as bun binary or node (npm package).
// Kept alongside the SDK's promoted 'runtime' tag for explicit signaling
// and backward compatibility with existing dashboards/alerts.
Expand Down
Loading