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
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.46.0"
"version": "10.47.0"
}
87 changes: 74 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

## Unreleased

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

- **ref(core): Remove provider-specific AI span attributes in favor of `gen_ai` attributes in sentry conventions ([#20011](https://github.com/getsentry/sentry-javascript/pull/20011))**

The following provider-specific span attributes have been removed from the OpenAI and Anthropic AI integrations. Use the standardized `gen_ai.*` equivalents instead:

| Removed attribute | Replacement |
| -------------------------------- | ---------------------------- |
| `openai.response.id` | `gen_ai.response.id` |
| `openai.response.model` | `gen_ai.response.model` |
| `openai.usage.prompt_tokens` | `gen_ai.usage.input_tokens` |
| `openai.usage.completion_tokens` | `gen_ai.usage.output_tokens` |
| `openai.response.timestamp` | _(removed, no replacement)_ |
| `anthropic.response.timestamp` | _(removed, no replacement)_ |

If you reference these attributes in hooks (e.g. `beforeSendTransaction`), update them to the `gen_ai.*` equivalents.

## 10.47.0

### Important Changes

- **feat(node-core): Add OTLP integration for node-core/light ([#19729](https://github.com/getsentry/sentry-javascript/pull/19729))**
Expand Down Expand Up @@ -53,25 +72,67 @@
});
```

- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
- feat(core): Support embedding APIs in google-genai ([#19797](https://github.com/getsentry/sentry-javascript/pull/19797))
- **feat(core): Support embedding APIs in google-genai ([#19797](https://github.com/getsentry/sentry-javascript/pull/19797))**

Adds instrumentation for the Google GenAI [`embedContent`](https://ai.google.dev/gemini-api/docs/embeddings) API, creating `gen_ai.embeddings` spans.

- **ref(core): Remove provider-specific AI span attributes in favor of `gen_ai` attributes in sentry conventions ([#20011](https://github.com/getsentry/sentry-javascript/pull/20011))**
- **feat(browser): Add `elementTimingIntegration` for tracking element render and load times ([#19869](https://github.com/getsentry/sentry-javascript/pull/19869))**

The following provider-specific span attributes have been removed from the OpenAI and Anthropic AI integrations. Use the standardized `gen_ai.*` equivalents instead:
The new `elementTimingIntegration` captures Element Timing API data as Sentry metrics. It emits `element_timing.render_time` and `element_timing.load_time` distribution metrics for elements annotated with the `elementtiming` HTML attribute.

| Removed attribute | Replacement |
| -------------------------------- | ---------------------------- |
| `openai.response.id` | `gen_ai.response.id` |
| `openai.response.model` | `gen_ai.response.model` |
| `openai.usage.prompt_tokens` | `gen_ai.usage.input_tokens` |
| `openai.usage.completion_tokens` | `gen_ai.usage.output_tokens` |
| `openai.response.timestamp` | _(removed, no replacement)_ |
| `anthropic.response.timestamp` | _(removed, no replacement)_ |
```ts
import * as Sentry from '@sentry/browser';

If you reference these attributes in hooks (e.g. `beforeSendTransaction`), update them to the `gen_ai.*` equivalents.
Sentry.init({
dsn: '__DSN__',
integrations: [Sentry.browserTracingIntegration(), Sentry.elementTimingIntegration()],
});
```

```html
<img src="hero.jpg" elementtiming="hero-image" />
```

### Other Changes

- feat(nuxt): Add middleware instrumentation compatibility for Nuxt 5 ([#19968](https://github.com/getsentry/sentry-javascript/pull/19968))
- feat(nuxt): Support parametrized SSR routes in Nuxt 5 ([#19977](https://github.com/getsentry/sentry-javascript/pull/19977))
- feat(solid): Add route parametrization for Solid Router ([#20031](https://github.com/getsentry/sentry-javascript/pull/20031))
- fix(core): Guard nullish response in supabase PostgREST handler ([#20033](https://github.com/getsentry/sentry-javascript/pull/20033))
- fix(node): Deduplicate `sentry-trace` and `baggage` headers on outgoing requests ([#19960](https://github.com/getsentry/sentry-javascript/pull/19960))
- fix(node): Ensure startNewTrace propagates traceId in OTel environments ([#19963](https://github.com/getsentry/sentry-javascript/pull/19963))
- fix(nuxt): Use virtual module for Nuxt pages data (SSR route parametrization) ([#20020](https://github.com/getsentry/sentry-javascript/pull/20020))
- fix(opentelemetry): Convert seconds timestamps in span.end() to milliseconds ([#19958](https://github.com/getsentry/sentry-javascript/pull/19958))
- fix(profiling): Disable profiling in worker threads ([#20040](https://github.com/getsentry/sentry-javascript/pull/20040))
- fix(react-router): Disable debug ID injection in Vite plugin to prevent double injection ([#19890](https://github.com/getsentry/sentry-javascript/pull/19890))
- refactor(browser): Reduce browser package bundle size ([#19856](https://github.com/getsentry/sentry-javascript/pull/19856))
- feat(deps): Bump OpenTelemetry dependencies ([#20046](https://github.com/getsentry/sentry-javascript/pull/20046))

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

- chore: Add shared validate-pr composite action ([#20025](https://github.com/getsentry/sentry-javascript/pull/20025))
- chore: Update validate-pr action to latest version ([#20027](https://github.com/getsentry/sentry-javascript/pull/20027))
- chore(deps): Bump @apollo/server from 5.4.0 to 5.5.0 ([#20007](https://github.com/getsentry/sentry-javascript/pull/20007))
- chore(deps): Bump amqplib from 0.10.7 to 0.10.9 ([#20000](https://github.com/getsentry/sentry-javascript/pull/20000))
- chore(deps): Bump srvx from 0.11.12 to 0.11.13 ([#20001](https://github.com/getsentry/sentry-javascript/pull/20001))
- chore(deps-dev): Bump node-forge from 1.3.2 to 1.4.0 ([#20012](https://github.com/getsentry/sentry-javascript/pull/20012))
- chore(deps-dev): Bump yaml from 2.8.2 to 2.8.3 ([#19985](https://github.com/getsentry/sentry-javascript/pull/19985))
- ci(deps): Bump actions/upload-artifact from 6 to 7 ([#19569](https://github.com/getsentry/sentry-javascript/pull/19569))
- docs(release): Update publishing-a-release.md ([#19982](https://github.com/getsentry/sentry-javascript/pull/19982))
- feat(deps): Bump babel-loader from 10.0.0 to 10.1.1 ([#19997](https://github.com/getsentry/sentry-javascript/pull/19997))
- feat(deps): Bump handlebars from 4.7.7 to 4.7.9 ([#20008](https://github.com/getsentry/sentry-javascript/pull/20008))
- fix(browser-tests): Pin axios to 1.13.5 to avoid compromised 1.14.1 ([#20047](https://github.com/getsentry/sentry-javascript/pull/20047))
- fix(ci): Update validate-pr action to remove draft enforcement ([#20035](https://github.com/getsentry/sentry-javascript/pull/20035))
- fix(ci): Update validate-pr action to remove draft enforcement ([#20037](https://github.com/getsentry/sentry-javascript/pull/20037))
- fix(e2e): Pin @opentelemetry/api to 1.9.0 in ts3.8 test app ([#19992](https://github.com/getsentry/sentry-javascript/pull/19992))
- ref(browser-tests): Add waitForMetricRequest helper ([#20002](https://github.com/getsentry/sentry-javascript/pull/20002))
- ref(core): Consolidate getOperationName into one shared utility ([#19971](https://github.com/getsentry/sentry-javascript/pull/19971))
- ref(core): Introduce instrumented method registry for AI integrations ([#19981](https://github.com/getsentry/sentry-javascript/pull/19981))
- test(deno): Expand Deno E2E test coverage ([#19957](https://github.com/getsentry/sentry-javascript/pull/19957))
- test(e2e): Add e2e tests for `nodeRuntimeMetricsIntegration` ([#19989](https://github.com/getsentry/sentry-javascript/pull/19989))

</details>

## 10.46.0

Expand Down
4 changes: 2 additions & 2 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.46.0",
"version": "10.47.0",
"main": "index.js",
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -60,7 +60,7 @@
"@babel/preset-typescript": "^7.16.7",
"@playwright/test": "~1.56.0",
"@sentry-internal/rrweb": "2.34.0",
"@sentry/browser": "10.46.0",
"@sentry/browser": "10.47.0",
"@supabase/supabase-js": "2.49.3",
"axios": "1.13.5",
"babel-loader": "^10.1.1",
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/bundle-analyzer-scenarios/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/bundle-analyzer-scenarios",
"version": "10.46.0",
"version": "10.47.0",
"description": "Scenarios to test bundle analysis with",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/dev-packages/bundle-analyzer-scenarios",
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.46.0",
"version": "10.47.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.46.0",
"@sentry/browser": "10.47.0",
"rollup": "^4.0.0",
"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.46.0",
"version": "10.47.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.46.0",
"version": "10.47.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand All @@ -14,13 +14,13 @@
},
"dependencies": {
"@langchain/langgraph": "^1.0.1",
"@sentry/cloudflare": "10.46.0",
"@sentry/hono": "10.46.0",
"@sentry/cloudflare": "10.47.0",
"@sentry/hono": "10.47.0",
"hono": "^4.12.7"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250922.0",
"@sentry-internal/test-utils": "10.46.0",
"@sentry-internal/test-utils": "10.47.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.46.0",
"version": "10.47.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.46.0",
"version": "10.47.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.46.0",
"version": "10.47.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand Down Expand Up @@ -34,8 +34,8 @@
"@opentelemetry/resources": "^2.6.1",
"@opentelemetry/sdk-trace-base": "^2.6.1",
"@opentelemetry/semantic-conventions": "^1.40.0",
"@sentry/core": "10.46.0",
"@sentry/node-core": "10.46.0",
"@sentry/core": "10.47.0",
"@sentry/node-core": "10.47.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.46.0",
"version": "10.47.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand Down Expand Up @@ -38,10 +38,10 @@
"@nestjs/platform-express": "^11",
"@prisma/adapter-pg": "7.2.0",
"@prisma/client": "6.15.0",
"@sentry/aws-serverless": "10.46.0",
"@sentry/core": "10.46.0",
"@sentry/hono": "10.46.0",
"@sentry/node": "10.46.0",
"@sentry/aws-serverless": "10.47.0",
"@sentry/core": "10.47.0",
"@sentry/hono": "10.47.0",
"@sentry/node": "10.47.0",
"@types/mongodb": "^3.6.20",
"@types/mysql": "^2.15.21",
"@types/pg": "^8.6.5",
Expand Down Expand Up @@ -86,7 +86,7 @@
"yargs": "^16.2.0"
},
"devDependencies": {
"@sentry-internal/test-utils": "10.46.0",
"@sentry-internal/test-utils": "10.47.0",
"@types/amqplib": "^0.10.5",
"@types/node-cron": "^3.0.11",
"@types/node-schedule": "^2.1.7",
Expand Down
4 changes: 2 additions & 2 deletions dev-packages/node-overhead-gh-action/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/node-overhead-gh-action",
"version": "10.46.0",
"version": "10.47.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand All @@ -23,7 +23,7 @@
"lint:fix": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --fix --type-aware"
},
"dependencies": {
"@sentry/node": "10.46.0",
"@sentry/node": "10.47.0",
"express": "^4.21.2",
"mysql2": "^3.19.1"
},
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.46.0",
"version": "10.47.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.46.0",
"version": "10.47.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.46.0",
"version": "10.47.0",
"name": "@sentry-internal/test-utils",
"author": "Sentry",
"license": "MIT",
Expand Down Expand Up @@ -48,7 +48,7 @@
},
"devDependencies": {
"@playwright/test": "~1.56.0",
"@sentry/core": "10.46.0",
"@sentry/core": "10.47.0",
"eslint-plugin-regexp": "^1.15.0"
},
"volta": {
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.46.0",
"version": "10.47.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.46.0",
"@sentry/core": "10.46.0",
"@sentry/browser": "10.47.0",
"@sentry/core": "10.47.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.46.0",
"version": "10.47.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.46.0",
"@sentry/core": "10.46.0",
"@sentry/node": "10.46.0",
"@sentry/browser": "10.47.0",
"@sentry/core": "10.47.0",
"@sentry/node": "10.47.0",
"@sentry/vite-plugin": "^5.1.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.46.0",
"version": "10.47.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 @@ -69,9 +69,9 @@
"@opentelemetry/instrumentation": "^0.214.0",
"@opentelemetry/instrumentation-aws-sdk": "0.69.0",
"@opentelemetry/semantic-conventions": "^1.40.0",
"@sentry/core": "10.46.0",
"@sentry/node": "10.46.0",
"@sentry/node-core": "10.46.0",
"@sentry/core": "10.47.0",
"@sentry/node": "10.47.0",
"@sentry/node-core": "10.47.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.46.0",
"version": "10.47.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.46.0"
"@sentry/core": "10.47.0"
},
"scripts": {
"build": "run-p build:transpile build:types",
Expand Down
Loading
Loading