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
4 changes: 2 additions & 2 deletions .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ module.exports = [
import: createImport('init'),
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
gzip: true,
limit: '150 KB',
limit: '151 KB',
disablePlugins: ['@size-limit/esbuild'],
},
{
Expand Down Expand Up @@ -465,7 +465,7 @@ module.exports = [
path: 'packages/node/build/esm/index.js',
import: createImport('init'),
gzip: true,
limit: '128 KB',
limit: '130 KB',
disablePlugins: ['@size-limit/esbuild'],
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
modifyWebpackConfig: function (config) {
Expand Down
2 changes: 1 addition & 1 deletion .version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_comment": "Auto-generated by scripts/bump-version.js. Used by the gitflow sync workflow to detect version bumps. Do not edit manually.",
"version": "11.5.0"
"version": "11.6.0"
}
79 changes: 77 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,84 @@

- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott

- **feat(server-utils)** Add instrumentation for pi-durable ([#24993](https://github.com/getsentry/sentry-javascript/pull/24993/))
## 11.6.0

The new `piDurableIntegration` traces agents built with [pi-durable](https://github.com/earendil-works/pi/tree/main/packages/durable): each run, with its model requests and tool calls.
### Important Changes

- **feat(nextjs): Add `@sentry/nextjs/cloudflare` ([#24998](https://github.com/getsentry/sentry-javascript/pull/24998))**

The new `@sentry/nextjs/cloudflare` entry point exports `withSentry` for the Worker entry of a Next.js app on Cloudflare Workers, for example `.open-next/worker.js` of OpenNext. It is `withSentry` of `@sentry/cloudflare` with the Next.js server handling added, so a Next.js app on Workers gets the same spans as on Node.js.

```ts
import * as Sentry from '@sentry/nextjs/cloudflare';
import handler from './.open-next/worker.js';

export default Sentry.withSentry(
env => ({
dsn: env.SENTRY_DSN,
tracesSampleRate: 1.0,
}),
handler,
);
```

- **feat(server-utils): Add instrumentation for pi-durable ([#24993](https://github.com/getsentry/sentry-javascript/pull/24993))**

The new `piDurableIntegration` traces agents built with [pi-durable](https://github.com/earendil-works/pi/tree/main/packages/durable): each run, with its model requests and tool calls.

- **fix(core): Correct sleep clock drift on telemetry timestamps ([#23054](https://github.com/getsentry/sentry-javascript/pull/23054))**

When a device sleeps, the `performance.now()` clock of the browser stops. Before this change, timestamps of spans and other telemetry recorded after the sleep could be too early. The SDK now detects this drift and corrects its time origin, also for spans created from performance entries. Span end times are now computed from the `performance.now()` duration since the span start, like in OpenTelemetry ([#24903](https://github.com/getsentry/sentry-javascript/pull/24903)).

### Other Changes

- feat(cloudflare): Skip spans for the pi_ tables of PiHarness ([#25028](https://github.com/getsentry/sentry-javascript/pull/25028))
- feat(remix): Propagate the server trace to Remix 3 page loads ([#25145](https://github.com/getsentry/sentry-javascript/pull/25145))
- feat(server-utils): Map Mastra classifier evaluations to gen_ai.evaluate spans ([#25044](https://github.com/getsentry/sentry-javascript/pull/25044))
- feat(server-utils): Record LangChain TypeSafeClassifier runs as gen_ai.evaluate spans ([#25120](https://github.com/getsentry/sentry-javascript/pull/25120))
- fix(browser): Check for clock drift on page lifecycle events ([#25091](https://github.com/getsentry/sentry-javascript/pull/25091))
- fix(core): Exclude attachments from internal exception events ([#25160](https://github.com/getsentry/sentry-javascript/pull/25160))
- fix(effect): Convert Effect span times to the Sentry clock ([#24972](https://github.com/getsentry/sentry-javascript/pull/24972))
- fix(effect): Detect HTTP spans named after the request method ([#25159](https://github.com/getsentry/sentry-javascript/pull/25159))
- fix(node): Register Vercel keep-alive listeners once ([#25146](https://github.com/getsentry/sentry-javascript/pull/25146))
- fix(replay): Place CLS and INP web vitals at the right time ([#24990](https://github.com/getsentry/sentry-javascript/pull/24990))
- fix(server-utils): Record LangGraph span I/O for non-MessagesAnnotation state ([#23315](https://github.com/getsentry/sentry-javascript/pull/23315))
- fix(sveltekit): Upload source maps with SvelteKit 3 ([#25139](https://github.com/getsentry/sentry-javascript/pull/25139))

<details>
<summary> <strong>Internal Changes</strong> </summary>

- chore: Add external contributor to CHANGELOG.md ([#25136](https://github.com/getsentry/sentry-javascript/pull/25136))
- chore(deps-dev): Bump next from 15.5.24 to 15.5.27 ([#25171](https://github.com/getsentry/sentry-javascript/pull/25171))
- chore(nitro): Remove stale bundler-plugin-core rollup external ([#25149](https://github.com/getsentry/sentry-javascript/pull/25149))
- feat(cloudflare): Wrap vinext Worker entries with `@sentry/nextjs/cloudflare` ([#25000](https://github.com/getsentry/sentry-javascript/pull/25000))
- feat(deps): Bump next from 16.2.11 to 16.3.8 in /dev-packages/e2e-tests/test-applications/nextjs-sourcemaps ([#25170](https://github.com/getsentry/sentry-javascript/pull/25170))
- fix(deps): Bump @graphql-tools/utils to 12.0.3 ([#25162](https://github.com/getsentry/sentry-javascript/pull/25162))
- ref(eslint-plugin-sdk): Improve `no-unsafe-random-apis` rule ([#25123](https://github.com/getsentry/sentry-javascript/pull/25123))
- test(cloudflare): Port the remaining static suites to span streaming ([#25112](https://github.com/getsentry/sentry-javascript/pull/25112))
- test(cloudflare): Widen the wrangler readiness retry window in integration tests ([#24925](https://github.com/getsentry/sentry-javascript/pull/24925))
- test(e2e): Add a cloudflare-pi-durable end-to-end application ([#25022](https://github.com/getsentry/sentry-javascript/pull/25022))
- test(e2e): Add a node-pi-durable end-to-end application ([#24994](https://github.com/getsentry/sentry-javascript/pull/24994))
- test(e2e): Add Mastra Jev classifier test to node-mastra ([#25115](https://github.com/getsentry/sentry-javascript/pull/25115))
- test(e2e): Wait for the soft navigation entry before hiding the page ([#25127](https://github.com/getsentry/sentry-javascript/pull/25127))
- test(nextjs): Run nextjs-16 on Bun, Deno and Cloudflare ([#24999](https://github.com/getsentry/sentry-javascript/pull/24999))
- test(node): Add streamed span collection helpers ([#25131](https://github.com/getsentry/sentry-javascript/pull/25131))
- test(node): Cover Jev calls inside createAgent and LangGraph ([#25132](https://github.com/getsentry/sentry-javascript/pull/25132))
- test(node): Port AMQP integration tests to span streaming ([#25158](https://github.com/getsentry/sentry-javascript/pull/25158))
- test(node): Port Anthropic integration tests to span streaming ([#25082](https://github.com/getsentry/sentry-javascript/pull/25082))
- test(node): Port Bedrock tests to span streaming ([#25086](https://github.com/getsentry/sentry-javascript/pull/25086))
- test(node): Port Google GenAI tests to span streaming ([#25083](https://github.com/getsentry/sentry-javascript/pull/25083))
- test(node): Port Knex integration tests to span streaming ([#25154](https://github.com/getsentry/sentry-javascript/pull/25154))
- test(node): Port LangChain tests to span streaming ([#25084](https://github.com/getsentry/sentry-javascript/pull/25084))
- test(node): Port LangGraph tests to span streaming ([#25085](https://github.com/getsentry/sentry-javascript/pull/25085))
- test(node): Port Mastra tests to span streaming ([#25087](https://github.com/getsentry/sentry-javascript/pull/25087))
- test(node): Port MySQL integration tests to span streaming ([#25148](https://github.com/getsentry/sentry-javascript/pull/25148))
- test(node): Port OpenAI integration tests to span streaming ([#25081](https://github.com/getsentry/sentry-javascript/pull/25081))
- test(node): Port pool and DataLoader integration tests to span streaming ([#25156](https://github.com/getsentry/sentry-javascript/pull/25156))
- test(node): Port Tedious integration tests to span streaming ([#25155](https://github.com/getsentry/sentry-javascript/pull/25155))
- test(node): Port Vercel AI v5-v7 tests to span streaming ([#25090](https://github.com/getsentry/sentry-javascript/pull/25090))

</details>

Work in this release was contributed by @zkasuran. Thank you for your contribution!

Expand Down
8 changes: 4 additions & 4 deletions dev-packages/browser-integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/browser-integration-tests",
"version": "11.5.0",
"version": "11.6.0",
"main": "index.js",
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -60,9 +60,9 @@
"@babel/preset-typescript": "^7.16.7",
"@playwright/test": "~1.63.0",
"@sentry/rrweb": "2.44.1",
"@sentry/browser": "11.5.0",
"@sentry/replay": "11.5.0",
"@sentry/opentelemetry": "11.5.0",
"@sentry/browser": "11.6.0",
"@sentry/replay": "11.6.0",
"@sentry/opentelemetry": "11.6.0",
"@sentry/conventions": "0.26.0",
"@supabase/supabase-js": "2.109.0",
"axios": "1.20.0",
Expand Down
10 changes: 5 additions & 5 deletions dev-packages/bun-integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/bun-integration-tests",
"version": "11.5.0",
"version": "11.6.0",
"license": "MIT",
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
Expand All @@ -14,15 +14,15 @@
"test:watch": "yarn test --watch"
},
"dependencies": {
"@sentry/bun": "11.5.0",
"@sentry/hono": "11.5.0",
"@sentry/bun": "11.6.0",
"@sentry/hono": "11.6.0",
"hono": "^4.13.7",
"mysql": "^2.18.1",
"pg": "8.16.0"
},
"devDependencies": {
"@sentry-internal/node-integration-tests": "11.5.0",
"@sentry-internal/test-utils": "11.5.0",
"@sentry-internal/node-integration-tests": "11.6.0",
"@sentry-internal/test-utils": "11.6.0",
"bun-types": "^1.2.9",
"vitest": "^4.1.11"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"type": "module",
"dependencies": {
"esbuild": "0.28.0",
"@sentry/bundler-plugins": "11.5.0"
"@sentry/bundler-plugins": "11.6.0"
},
"pnpm": {
"overrides": {
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.5.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.5.0.tgz",
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.6.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.6.0.tgz",
"sentry": "file:../sentry-stub"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"private": true,
"type": "module",
"dependencies": {
"@sentry/bundler-plugins": "11.5.0",
"@sentry/bundler-plugins": "11.6.0",
"react": "19.2.4",
"rolldown": "1.0.0"
},
"pnpm": {
"overrides": {
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.5.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.5.0.tgz",
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.6.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.6.0.tgz",
"sentry": "file:../sentry-stub"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"rollup": "3.30.0",
"@rollup/plugin-babel": "6.0.4",
"@rollup/plugin-node-resolve": "15.2.3",
"@sentry/bundler-plugins": "11.5.0"
"@sentry/bundler-plugins": "11.6.0"
},
"pnpm": {
"overrides": {
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.5.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.5.0.tgz",
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.6.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.6.0.tgz",
"sentry": "file:../sentry-stub"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"rollup": "4.59.0",
"@rollup/plugin-babel": "6.0.4",
"@rollup/plugin-node-resolve": "16.0.3",
"@sentry/bundler-plugins": "11.5.0"
"@sentry/bundler-plugins": "11.6.0"
},
"pnpm": {
"overrides": {
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.5.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.5.0.tgz",
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.6.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.6.0.tgz",
"sentry": "file:../sentry-stub"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"react": "19.2.4",
"vite": "4.5.14",
"@vitejs/plugin-react": "5.2.0",
"@sentry/bundler-plugins": "11.5.0"
"@sentry/bundler-plugins": "11.6.0"
},
"pnpm": {
"overrides": {
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.5.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.5.0.tgz",
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.6.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.6.0.tgz",
"sentry": "file:../sentry-stub"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"type": "module",
"dependencies": {
"vite": "6.4.1",
"@sentry/bundler-plugins": "11.5.0"
"@sentry/bundler-plugins": "11.6.0"
},
"pnpm": {
"overrides": {
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.5.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.5.0.tgz",
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.6.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.6.0.tgz",
"sentry": "file:../sentry-stub"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"react": "19.2.4",
"vite": "7.3.1",
"@vitejs/plugin-react": "5.2.0",
"@sentry/bundler-plugins": "11.5.0"
"@sentry/bundler-plugins": "11.6.0"
},
"pnpm": {
"overrides": {
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.5.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.5.0.tgz",
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.6.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.6.0.tgz",
"sentry": "file:../sentry-stub"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"react": "19.2.4",
"vite": "8.0.16",
"@vitejs/plugin-react": "6.0.1",
"@sentry/bundler-plugins": "11.5.0"
"@sentry/bundler-plugins": "11.6.0"
},
"pnpm": {
"overrides": {
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.5.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.5.0.tgz",
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.6.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.6.0.tgz",
"sentry": "file:../sentry-stub"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"webpack": "5.105.4",
"webpack-cli": "6.0.1",
"@babel/preset-react": "7.23.3",
"@sentry/bundler-plugins": "11.5.0"
"@sentry/bundler-plugins": "11.6.0"
},
"pnpm": {
"overrides": {
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.5.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.5.0.tgz",
"@sentry/bundler-plugins": "file:../../../../packages/bundler-plugins/sentry-bundler-plugins-11.6.0.tgz",
"@sentry/core": "file:../../../../packages/core/sentry-core-11.6.0.tgz",
"sentry": "file:../sentry-stub"
}
}
Expand Down
4 changes: 2 additions & 2 deletions dev-packages/bundler-plugin-integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/bundler-plugin-integration-tests",
"version": "11.5.0",
"version": "11.6.0",
"license": "MIT",
"private": true,
"scripts": {
Expand All @@ -12,7 +12,7 @@
"clean:deps": "premove node_modules"
},
"dependencies": {
"@sentry/bundler-plugins": "11.5.0"
"@sentry/bundler-plugins": "11.6.0"
},
"devDependencies": {
"premove": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions dev-packages/bundler-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/bundler-tests",
"version": "11.5.0",
"version": "11.6.0",
"description": "Bundler tests for Sentry Browser SDK",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/bundler-tests",
Expand All @@ -13,7 +13,7 @@
},
"dependencies": {
"@rollup/plugin-node-resolve": "^16.0.3",
"@sentry/browser": "11.5.0",
"@sentry/browser": "11.6.0",
"rollup": "^4.60.3",
"vite": "^8.3.1",
"vitest": "^4.1.11",
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/clear-cache-gh-action/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sentry-internal/clear-cache-gh-action",
"description": "An internal Github Action to clear GitHub caches.",
"version": "11.5.0",
"version": "11.6.0",
"license": "MIT",
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
Expand Down
10 changes: 5 additions & 5 deletions dev-packages/cloudflare-integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/cloudflare-integration-tests",
"version": "11.5.0",
"version": "11.6.0",
"license": "MIT",
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
Expand All @@ -22,17 +22,17 @@
"@langchain/openai": "^0.5.0",
"@prisma/adapter-d1": "6.15.0",
"@prisma/client": "6.15.0",
"@sentry/cloudflare": "11.5.0",
"@sentry/core": "11.5.0",
"@sentry/hono": "11.5.0",
"@sentry/cloudflare": "11.6.0",
"@sentry/core": "11.6.0",
"@sentry/hono": "11.6.0",
"hono": "^4.13.7",
"openai": "5.18.1"
},
"devDependencies": {
"@cloudflare/vite-plugin": "1.34.0",
"@cloudflare/workers-types": "^4.20260426.0",
"@cloudflare/workers-types-v5": "npm:@cloudflare/workers-types@5.20260710.1",
"@sentry-internal/test-utils": "11.5.0",
"@sentry-internal/test-utils": "11.6.0",
"@sentry/conventions": "0.26.0",
"eslint-plugin-regexp": "^3.1.0",
"prisma": "6.15.0",
Expand Down
Loading
Loading