Skip to content
Closed
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
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": "10.53.1"
"version": "10.54.0"
}
94 changes: 93 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,104 @@

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

Work in this release was contributed by @abcang, @ahmadio, @victorgarciaesgi, @delorge, and @mdnanocom. Thank you for your contributions!
## 10.54.0

### Important Changes

- **feat(browser): Add `fetchStreamPerformanceIntegration` for streamed response tracking ([#20778](https://github.com/getsentry/sentry-javascript/pull/20778))**

A new integration that tracks the performance of streamed fetch responses. Use this to measure time-to-first-byte and streaming duration for APIs that return chunked/streamed data. This replaces the now deprecated `trackFetchStreamPerformance` option.

- **feat(core): Add `dataCollection` client option ([#20965](https://github.com/getsentry/sentry-javascript/pull/20965))**

Adds a new `dataCollection` client option for controlling what data the SDK collects and sends to Sentry. This provides a centralized way to configure data collection behavior across different SDK features. In the future, this option will be used for fine-granular data filtering, while the simple `sendDefaultPii` boolean option will be deprecated and removed in a future release.

- **feat(core): Support array attributes for spans, logs, and metrics ([#20427](https://github.com/getsentry/sentry-javascript/pull/20427))**

Arrays of primitive values (`string`, `number`, `boolean`) are now accepted as attribute values. Arrays containing non-primitive elements will be dropped and won't show up in Sentry. Note that array attributes on logs and metrics were previously stringified in certain cases and will now be sent as arrays instead.

- **feat(hono): Add `hono.request` spans for internal `.request()` calls ([#20843](https://github.com/getsentry/sentry-javascript/pull/20843))**

The Hono SDK now creates spans for internal `.request()` calls, providing better visibility into request handling within Hono applications.

### Other Changes

- feat(core): Add data collection filtering utilities ([#20989](https://github.com/getsentry/sentry-javascript/pull/20989))
- feat(core): Convert scope contexts to segment span attributes in span streaming ([#20828](https://github.com/getsentry/sentry-javascript/pull/20828))
- feat(core): Emit `sentry.sdk.integrations` on streamed segment spans ([#20428](https://github.com/getsentry/sentry-javascript/pull/20428))
- feat(core): HTTP server diagnostics channel utility ([#20779](https://github.com/getsentry/sentry-javascript/pull/20779))
- feat(core): Migrate span streaming envelope to `dataCollection` ([#21080](https://github.com/getsentry/sentry-javascript/pull/21080))
- feat(core): Migrate Supabase integration to `dataCollection` ([#21085](https://github.com/getsentry/sentry-javascript/pull/21085))
- feat(core): Migrate trpc to `dataCollection` ([#21072](https://github.com/getsentry/sentry-javascript/pull/21072))
- feat(deno): Instrument `node:http` on versions that support it ([#21009](https://github.com/getsentry/sentry-javascript/pull/21009))
- feat(ember): Extract ember-specific logic into custom `browserTracingIntegration` ([#20702](https://github.com/getsentry/sentry-javascript/pull/20702))
- feat(logs): Migrate log envelope user inference to `dataCollection` ([#21073](https://github.com/getsentry/sentry-javascript/pull/21073))
- feat(nuxt): Allow custom configuration files paths in Nuxt module ([#20650](https://github.com/getsentry/sentry-javascript/pull/20650))
- feat(replay): Update example worker script ([#20899](https://github.com/getsentry/sentry-javascript/pull/20899))
- feat(serverless): Add server-only context span attributes via processSegmentSpan hooks ([#20842](https://github.com/getsentry/sentry-javascript/pull/20842))
- fix(astro): Avoid injecting meta tags into `<head>` inside attribute values ([#21089](https://github.com/getsentry/sentry-javascript/pull/21089))
- fix(astro): Use explicit ResponseInit when injecting meta tags in response ([#21021](https://github.com/getsentry/sentry-javascript/pull/21021))
- fix(browser): Add a synthetic stack trace to DOMException with empty stack traces if `attachStacktrace` is true ([#19988](https://github.com/getsentry/sentry-javascript/pull/19988))
- fix(browser): Fix internal frame detection in minified bundles ([#20802](https://github.com/getsentry/sentry-javascript/pull/20802))
- fix(cloudflare): Avoid repeated flush lock wrapping ([#21156](https://github.com/getsentry/sentry-javascript/pull/21156))
- fix(cloudflare): Skip SDK initialization for OPTIONS/HEAD requests ([#21090](https://github.com/getsentry/sentry-javascript/pull/21090))
- fix(cloudflare, vercel-edge): Disable timer-based flush for serverless runtimes ([#20889](https://github.com/getsentry/sentry-javascript/pull/20889))
- fix(core): Sanitize lone surrogates in log body and attributes ([#20245](https://github.com/getsentry/sentry-javascript/pull/20245))
- fix(deno): Support `Deno.serve` instrumentation on Deno 2.8 ([#21155](https://github.com/getsentry/sentry-javascript/pull/21155))
- fix(hono): Preserve middleware handler metadata ([#20954](https://github.com/getsentry/sentry-javascript/pull/20954))
- fix(hono): Use generic Hono type in Bun/Node ([#21060](https://github.com/getsentry/sentry-javascript/pull/21060))
- fix(nextjs): Widen `project` option type to `string | string[]` ([#21067](https://github.com/getsentry/sentry-javascript/pull/21067))
- fix(node): Improve `http.client` double-wrap message ([#20705](https://github.com/getsentry/sentry-javascript/pull/20705))
- fix(node): Preserve CallbackManager handlers in LangChain instrumentation ([#20849](https://github.com/getsentry/sentry-javascript/pull/20849))
- fix(react-router): Do not re-write origin on router state changes ([#21056](https://github.com/getsentry/sentry-javascript/pull/21056))
- fix(replay): Set `sentry.replay_id` attribute on streamed spans ([#20897](https://github.com/getsentry/sentry-javascript/pull/20897))
- fix(replay): Set `replay_id` on DSC after buffer-to-session conversion ([#20686](https://github.com/getsentry/sentry-javascript/pull/20686))
- fix(solidstart): Use nitro module for build hooks to preserve preset hooks ([#20861](https://github.com/getsentry/sentry-javascript/pull/20861))
- ref(core): Rename `types-hoist` to `types` ([#20979](https://github.com/getsentry/sentry-javascript/pull/20979))

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

- chore: Add compatibility function for `sendDefaultPii` ([#20967](https://github.com/getsentry/sentry-javascript/pull/20967))
- chore: Add size-limit for core/server, core/browser ([#20990](https://github.com/getsentry/sentry-javascript/pull/20990))
- chore: Bump rrweb deps to v2.43.0 ([#20844](https://github.com/getsentry/sentry-javascript/pull/20844))
- chore(build): Replace sucrase with esbuild ([#20865](https://github.com/getsentry/sentry-javascript/pull/20865))
- chore(deps): Bump nitropack from 2.13.1 to 2.13.4 ([#20713](https://github.com/getsentry/sentry-javascript/pull/20713))
- chore(deps): Bump ws from 8.20.0 to 8.20.1 ([#20998](https://github.com/getsentry/sentry-javascript/pull/20998))
- chore(deps): Remove redundant yarn resolutions ([#20877](https://github.com/getsentry/sentry-javascript/pull/20877))
- feat(deps): Bump @tootallnate/once from 1.1.2 to 2.0.1 ([#21108](https://github.com/getsentry/sentry-javascript/pull/21108))
- feat(deps): Bump devalue from 4.3.3 to 5.8.1 ([#20893](https://github.com/getsentry/sentry-javascript/pull/20893))
- feat(deps): Bump protobufjs from 7.5.5 to 7.5.9 ([#20846](https://github.com/getsentry/sentry-javascript/pull/20846))
- ref(aws-serverless): Vendor aws-sdk instrumentation ([#20988](https://github.com/getsentry/sentry-javascript/pull/20988))
- ref(http): Use shared snippets for filtering headers and cookies ([#20970](https://github.com/getsentry/sentry-javascript/pull/20970))
- ref(nestjs): Vendor nestjs-core instrumentation ([#20996](https://github.com/getsentry/sentry-javascript/pull/20996))
- ref(node): Remove unused `@opentelemetry/instrumentation-http` dependency ([#21113](https://github.com/getsentry/sentry-javascript/pull/21113))
- ref(node): Vendor `@fastify/otel` ([#21099](https://github.com/getsentry/sentry-javascript/pull/21099))
- ref(node): Vendor `@opentelemetry/instrumentation-pg` ([#21102](https://github.com/getsentry/sentry-javascript/pull/21102))
- ref(node): Vendor `@opentelemetry/sql-common` ([#21140](https://github.com/getsentry/sentry-javascript/pull/21140))
- ref(node): Vendor `@prisma/instrumentation` ([#21098](https://github.com/getsentry/sentry-javascript/pull/21098))
- ref(node): Vendor amqplib instrumentation ([#21003](https://github.com/getsentry/sentry-javascript/pull/21003))
- ref(node): Vendor connect instrumentation ([#20955](https://github.com/getsentry/sentry-javascript/pull/20955))
- ref(node): Vendor dataloader instrumentation ([#20950](https://github.com/getsentry/sentry-javascript/pull/20950))
- ref(node): Vendor fs instrumentation ([#20964](https://github.com/getsentry/sentry-javascript/pull/20964))
- ref(node): Vendor generic-pool instrumentation ([#20949](https://github.com/getsentry/sentry-javascript/pull/20949))
- ref(node): Vendor graphql instrumentation ([#21096](https://github.com/getsentry/sentry-javascript/pull/21096))
- ref(node): Vendor hapi instrumentation ([#21057](https://github.com/getsentry/sentry-javascript/pull/21057))
- ref(node): Vendor kafkajs instrumentation ([#21005](https://github.com/getsentry/sentry-javascript/pull/21005))
- ref(node): Vendor knex instrumentation ([#20963](https://github.com/getsentry/sentry-javascript/pull/20963))
- ref(node): Vendor koa instrumentation ([#20956](https://github.com/getsentry/sentry-javascript/pull/20956))
- ref(node): Vendor lru-memoizer instrumentation ([#20948](https://github.com/getsentry/sentry-javascript/pull/20948))
- ref(node): Vendor minimal types for dataloader and generic-pool instrumentations ([#21013](https://github.com/getsentry/sentry-javascript/pull/21013))
- ref(node): Vendor mongodb instrumentation ([#20966](https://github.com/getsentry/sentry-javascript/pull/20966))
- ref(node): Vendor mongoose instrumentation ([#21058](https://github.com/getsentry/sentry-javascript/pull/21058))
- ref(node): Vendor mysql instrumentation ([#21016](https://github.com/getsentry/sentry-javascript/pull/21016))
- ref(node): Vendor mysql2 instrumentation ([#21031](https://github.com/getsentry/sentry-javascript/pull/21031))
- ref(node): Vendor tedious instrumentation ([#21010](https://github.com/getsentry/sentry-javascript/pull/21010))

</details>

Work in this release was contributed by @abcang, @ahmadio, @delorge, @mdnanocom, and @victorgarciaesgi. Thank you for your contributions!

## 10.53.1

- fix(core): Don't gate user data for streamed spans at scope read time ([#20827](https://github.com/getsentry/sentry-javascript/pull/20827))
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": "10.53.1",
"version": "10.54.0",
"main": "index.js",
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -60,9 +60,9 @@
"@babel/preset-typescript": "^7.16.7",
"@playwright/test": "~1.56.0",
"@sentry-internal/rrweb": "2.43.0",
"@sentry/browser": "10.53.1",
"@sentry-internal/replay": "10.53.1",
"@sentry/opentelemetry": "10.53.1",
"@sentry/browser": "10.54.0",
"@sentry-internal/replay": "10.54.0",
"@sentry/opentelemetry": "10.54.0",
"@supabase/supabase-js": "2.49.3",
"axios": "1.15.2",
"babel-loader": "^10.1.1",
Expand Down
8 changes: 4 additions & 4 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": "10.53.1",
"version": "10.54.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand All @@ -13,12 +13,12 @@
"test:watch": "yarn test --watch"
},
"dependencies": {
"@sentry/bun": "10.53.1",
"@sentry/hono": "10.53.1",
"@sentry/bun": "10.54.0",
"@sentry/hono": "10.54.0",
"hono": "^4.12.18"
},
"devDependencies": {
"@sentry-internal/test-utils": "10.53.1",
"@sentry-internal/test-utils": "10.54.0",
"bun-types": "^1.2.9",
"vitest": "^3.2.4"
},
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": "10.53.1",
"version": "10.54.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": "10.53.1",
"@sentry/browser": "10.54.0",
"rollup": "^4.60.3",
"vite": "^5.0.0",
"vitest": "^3.2.4",
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": "10.53.1",
"version": "10.54.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand Down
8 changes: 4 additions & 4 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": "10.53.1",
"version": "10.54.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand All @@ -14,13 +14,13 @@
},
"dependencies": {
"@langchain/langgraph": "^1.0.1",
"@sentry/cloudflare": "10.53.1",
"@sentry/hono": "10.53.1",
"@sentry/cloudflare": "10.54.0",
"@sentry/hono": "10.54.0",
"hono": "^4.12.18"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250922.0",
"@sentry-internal/test-utils": "10.53.1",
"@sentry-internal/test-utils": "10.54.0",
"eslint-plugin-regexp": "^1.15.0",
"vitest": "^3.2.4",
"wrangler": "4.61.0"
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/e2e-tests",
"version": "10.53.1",
"version": "10.54.0",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/external-contributor-gh-action/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sentry-internal/external-contributor-gh-action",
"description": "An internal Github Action to add external contributors to the CHANGELOG.md file.",
"version": "10.53.1",
"version": "10.54.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions dev-packages/node-core-integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/node-core-integration-tests",
"version": "10.53.1",
"version": "10.54.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand Down Expand Up @@ -33,8 +33,8 @@
"@opentelemetry/resources": "^2.6.1",
"@opentelemetry/sdk-trace-base": "^2.6.1",
"@opentelemetry/semantic-conventions": "^1.40.0",
"@sentry/core": "10.53.1",
"@sentry/node-core": "10.53.1",
"@sentry/core": "10.54.0",
"@sentry/node-core": "10.54.0",
"body-parser": "^2.2.2",
"cors": "^2.8.5",
"cron": "^3.1.6",
Expand Down
12 changes: 6 additions & 6 deletions dev-packages/node-integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/node-integration-tests",
"version": "10.53.1",
"version": "10.54.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand Down Expand Up @@ -39,10 +39,10 @@
"@nestjs/platform-express": "^11",
"@prisma/adapter-pg": "7.2.0",
"@prisma/client": "6.15.0",
"@sentry/aws-serverless": "10.53.1",
"@sentry/core": "10.53.1",
"@sentry/hono": "10.53.1",
"@sentry/node": "10.53.1",
"@sentry/aws-serverless": "10.54.0",
"@sentry/core": "10.54.0",
"@sentry/hono": "10.54.0",
"@sentry/node": "10.54.0",
"@types/mongodb": "^3.6.20",
"@types/mysql": "^2.15.21",
"@types/pg": "^8.6.5",
Expand Down Expand Up @@ -88,7 +88,7 @@
"yargs": "^16.2.0"
},
"devDependencies": {
"@sentry-internal/test-utils": "10.53.1",
"@sentry-internal/test-utils": "10.54.0",
"@types/amqplib": "^0.10.5",
"@types/node-cron": "^3.0.11",
"@types/node-schedule": "^2.1.7",
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/rollup-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/rollup-utils",
"version": "10.53.1",
"version": "10.54.0",
"description": "Rollup utilities used at Sentry for the Sentry JavaScript SDK",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/rollup-utils",
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/size-limit-gh-action/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sentry-internal/size-limit-gh-action",
"description": "An internal Github Action to compare the current size of a PR against the one on develop.",
"version": "10.53.1",
"version": "10.54.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand Down
4 changes: 2 additions & 2 deletions dev-packages/test-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"version": "10.53.1",
"version": "10.54.0",
"name": "@sentry-internal/test-utils",
"author": "Sentry",
"license": "MIT",
Expand Down Expand Up @@ -49,7 +49,7 @@
},
"devDependencies": {
"@playwright/test": "~1.56.0",
"@sentry/core": "10.53.1",
"@sentry/core": "10.54.0",
"@types/ws": "^8.18.1",
"eslint-plugin-regexp": "^1.15.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/angular",
"version": "10.53.1",
"version": "10.54.0",
"description": "Official Sentry SDK for Angular",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular",
Expand All @@ -21,8 +21,8 @@
"rxjs": "^6.5.5 || ^7.x"
},
"dependencies": {
"@sentry/browser": "10.53.1",
"@sentry/core": "10.53.1",
"@sentry/browser": "10.54.0",
"@sentry/core": "10.54.0",
"tslib": "^2.4.1"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/astro",
"version": "10.53.1",
"version": "10.54.0",
"description": "Official Sentry SDK for Astro",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/astro",
Expand Down Expand Up @@ -56,9 +56,9 @@
"astro": ">=3.x || >=4.0.0-beta"
},
"dependencies": {
"@sentry/browser": "10.53.1",
"@sentry/core": "10.53.1",
"@sentry/node": "10.53.1",
"@sentry/browser": "10.54.0",
"@sentry/core": "10.54.0",
"@sentry/node": "10.54.0",
"@sentry/vite-plugin": "^5.3.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/aws-serverless/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/aws-serverless",
"version": "10.53.1",
"version": "10.54.0",
"description": "Official Sentry SDK for AWS Lambda and AWS Serverless Environments",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/aws-serverless",
Expand Down Expand Up @@ -70,9 +70,9 @@
"@opentelemetry/core": "^2.6.1",
"@opentelemetry/instrumentation": "^0.214.0",
"@opentelemetry/semantic-conventions": "^1.40.0",
"@sentry/core": "10.53.1",
"@sentry/node": "10.53.1",
"@sentry/node-core": "10.53.1",
"@sentry/core": "10.54.0",
"@sentry/node": "10.54.0",
"@sentry/node-core": "10.54.0",
"@types/aws-lambda": "^8.10.62"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/browser-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/browser-utils",
"version": "10.53.1",
"version": "10.54.0",
"description": "Browser Utilities for all Sentry JavaScript SDKs",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser-utils",
Expand Down Expand Up @@ -39,7 +39,7 @@
"access": "public"
},
"dependencies": {
"@sentry/core": "10.53.1"
"@sentry/core": "10.54.0"
},
"scripts": {
"build": "run-p build:transpile build:types",
Expand Down
Loading
Loading