Skip to content

Commit 354ac78

Browse files
authored
Merge pull request #20054 from getsentry/cg-sync-master-2
chore(gitflow): Sync master with develop
2 parents 8ffd1de + 66a7b6d commit 354ac78

File tree

59 files changed

+244
-183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+244
-183
lines changed

.version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"_comment": "Auto-generated by scripts/bump-version.js. Used by the gitflow sync workflow to detect version bumps. Do not edit manually.",
3-
"version": "10.46.0"
3+
"version": "10.47.0"
44
}

CHANGELOG.md

Lines changed: 74 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
## Unreleased
44

5+
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
6+
7+
- **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))**
8+
9+
The following provider-specific span attributes have been removed from the OpenAI and Anthropic AI integrations. Use the standardized `gen_ai.*` equivalents instead:
10+
11+
| Removed attribute | Replacement |
12+
| -------------------------------- | ---------------------------- |
13+
| `openai.response.id` | `gen_ai.response.id` |
14+
| `openai.response.model` | `gen_ai.response.model` |
15+
| `openai.usage.prompt_tokens` | `gen_ai.usage.input_tokens` |
16+
| `openai.usage.completion_tokens` | `gen_ai.usage.output_tokens` |
17+
| `openai.response.timestamp` | _(removed, no replacement)_ |
18+
| `anthropic.response.timestamp` | _(removed, no replacement)_ |
19+
20+
If you reference these attributes in hooks (e.g. `beforeSendTransaction`), update them to the `gen_ai.*` equivalents.
21+
22+
## 10.47.0
23+
524
### Important Changes
625

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

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

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

61-
- **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))**
79+
- **feat(browser): Add `elementTimingIntegration` for tracking element render and load times ([#19869](https://github.com/getsentry/sentry-javascript/pull/19869))**
6280

63-
The following provider-specific span attributes have been removed from the OpenAI and Anthropic AI integrations. Use the standardized `gen_ai.*` equivalents instead:
81+
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.
6482

65-
| Removed attribute | Replacement |
66-
| -------------------------------- | ---------------------------- |
67-
| `openai.response.id` | `gen_ai.response.id` |
68-
| `openai.response.model` | `gen_ai.response.model` |
69-
| `openai.usage.prompt_tokens` | `gen_ai.usage.input_tokens` |
70-
| `openai.usage.completion_tokens` | `gen_ai.usage.output_tokens` |
71-
| `openai.response.timestamp` | _(removed, no replacement)_ |
72-
| `anthropic.response.timestamp` | _(removed, no replacement)_ |
83+
```ts
84+
import * as Sentry from '@sentry/browser';
7385

74-
If you reference these attributes in hooks (e.g. `beforeSendTransaction`), update them to the `gen_ai.*` equivalents.
86+
Sentry.init({
87+
dsn: '__DSN__',
88+
integrations: [Sentry.browserTracingIntegration(), Sentry.elementTimingIntegration()],
89+
});
90+
```
91+
92+
```html
93+
<img src="hero.jpg" elementtiming="hero-image" />
94+
```
95+
96+
### Other Changes
97+
98+
- feat(nuxt): Add middleware instrumentation compatibility for Nuxt 5 ([#19968](https://github.com/getsentry/sentry-javascript/pull/19968))
99+
- feat(nuxt): Support parametrized SSR routes in Nuxt 5 ([#19977](https://github.com/getsentry/sentry-javascript/pull/19977))
100+
- feat(solid): Add route parametrization for Solid Router ([#20031](https://github.com/getsentry/sentry-javascript/pull/20031))
101+
- fix(core): Guard nullish response in supabase PostgREST handler ([#20033](https://github.com/getsentry/sentry-javascript/pull/20033))
102+
- fix(node): Deduplicate `sentry-trace` and `baggage` headers on outgoing requests ([#19960](https://github.com/getsentry/sentry-javascript/pull/19960))
103+
- fix(node): Ensure startNewTrace propagates traceId in OTel environments ([#19963](https://github.com/getsentry/sentry-javascript/pull/19963))
104+
- fix(nuxt): Use virtual module for Nuxt pages data (SSR route parametrization) ([#20020](https://github.com/getsentry/sentry-javascript/pull/20020))
105+
- fix(opentelemetry): Convert seconds timestamps in span.end() to milliseconds ([#19958](https://github.com/getsentry/sentry-javascript/pull/19958))
106+
- fix(profiling): Disable profiling in worker threads ([#20040](https://github.com/getsentry/sentry-javascript/pull/20040))
107+
- fix(react-router): Disable debug ID injection in Vite plugin to prevent double injection ([#19890](https://github.com/getsentry/sentry-javascript/pull/19890))
108+
- refactor(browser): Reduce browser package bundle size ([#19856](https://github.com/getsentry/sentry-javascript/pull/19856))
109+
- feat(deps): Bump OpenTelemetry dependencies ([#20046](https://github.com/getsentry/sentry-javascript/pull/20046))
110+
111+
<details>
112+
<summary> <strong>Internal Changes</strong> </summary>
113+
114+
- chore: Add shared validate-pr composite action ([#20025](https://github.com/getsentry/sentry-javascript/pull/20025))
115+
- chore: Update validate-pr action to latest version ([#20027](https://github.com/getsentry/sentry-javascript/pull/20027))
116+
- chore(deps): Bump @apollo/server from 5.4.0 to 5.5.0 ([#20007](https://github.com/getsentry/sentry-javascript/pull/20007))
117+
- chore(deps): Bump amqplib from 0.10.7 to 0.10.9 ([#20000](https://github.com/getsentry/sentry-javascript/pull/20000))
118+
- chore(deps): Bump srvx from 0.11.12 to 0.11.13 ([#20001](https://github.com/getsentry/sentry-javascript/pull/20001))
119+
- chore(deps-dev): Bump node-forge from 1.3.2 to 1.4.0 ([#20012](https://github.com/getsentry/sentry-javascript/pull/20012))
120+
- chore(deps-dev): Bump yaml from 2.8.2 to 2.8.3 ([#19985](https://github.com/getsentry/sentry-javascript/pull/19985))
121+
- ci(deps): Bump actions/upload-artifact from 6 to 7 ([#19569](https://github.com/getsentry/sentry-javascript/pull/19569))
122+
- docs(release): Update publishing-a-release.md ([#19982](https://github.com/getsentry/sentry-javascript/pull/19982))
123+
- feat(deps): Bump babel-loader from 10.0.0 to 10.1.1 ([#19997](https://github.com/getsentry/sentry-javascript/pull/19997))
124+
- feat(deps): Bump handlebars from 4.7.7 to 4.7.9 ([#20008](https://github.com/getsentry/sentry-javascript/pull/20008))
125+
- fix(browser-tests): Pin axios to 1.13.5 to avoid compromised 1.14.1 ([#20047](https://github.com/getsentry/sentry-javascript/pull/20047))
126+
- fix(ci): Update validate-pr action to remove draft enforcement ([#20035](https://github.com/getsentry/sentry-javascript/pull/20035))
127+
- fix(ci): Update validate-pr action to remove draft enforcement ([#20037](https://github.com/getsentry/sentry-javascript/pull/20037))
128+
- fix(e2e): Pin @opentelemetry/api to 1.9.0 in ts3.8 test app ([#19992](https://github.com/getsentry/sentry-javascript/pull/19992))
129+
- ref(browser-tests): Add waitForMetricRequest helper ([#20002](https://github.com/getsentry/sentry-javascript/pull/20002))
130+
- ref(core): Consolidate getOperationName into one shared utility ([#19971](https://github.com/getsentry/sentry-javascript/pull/19971))
131+
- ref(core): Introduce instrumented method registry for AI integrations ([#19981](https://github.com/getsentry/sentry-javascript/pull/19981))
132+
- test(deno): Expand Deno E2E test coverage ([#19957](https://github.com/getsentry/sentry-javascript/pull/19957))
133+
- test(e2e): Add e2e tests for `nodeRuntimeMetricsIntegration` ([#19989](https://github.com/getsentry/sentry-javascript/pull/19989))
134+
135+
</details>
75136

76137
## 10.46.0
77138

dev-packages/browser-integration-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "10.46.0",
3+
"version": "10.47.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -60,7 +60,7 @@
6060
"@babel/preset-typescript": "^7.16.7",
6161
"@playwright/test": "~1.56.0",
6262
"@sentry-internal/rrweb": "2.34.0",
63-
"@sentry/browser": "10.46.0",
63+
"@sentry/browser": "10.47.0",
6464
"@supabase/supabase-js": "2.49.3",
6565
"axios": "1.13.5",
6666
"babel-loader": "^10.1.1",

dev-packages/bundle-analyzer-scenarios/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/bundle-analyzer-scenarios",
3-
"version": "10.46.0",
3+
"version": "10.47.0",
44
"description": "Scenarios to test bundle analysis with",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/dev-packages/bundle-analyzer-scenarios",

dev-packages/bundler-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/bundler-tests",
3-
"version": "10.46.0",
3+
"version": "10.47.0",
44
"description": "Bundler tests for Sentry Browser SDK",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/bundler-tests",
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@rollup/plugin-node-resolve": "^16.0.3",
16-
"@sentry/browser": "10.46.0",
16+
"@sentry/browser": "10.47.0",
1717
"rollup": "^4.0.0",
1818
"vite": "^5.0.0",
1919
"vitest": "^3.2.4",

dev-packages/clear-cache-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/clear-cache-gh-action",
33
"description": "An internal Github Action to clear GitHub caches.",
4-
"version": "10.46.0",
4+
"version": "10.47.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/cloudflare-integration-tests/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/cloudflare-integration-tests",
3-
"version": "10.46.0",
3+
"version": "10.47.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=18"
@@ -14,13 +14,13 @@
1414
},
1515
"dependencies": {
1616
"@langchain/langgraph": "^1.0.1",
17-
"@sentry/cloudflare": "10.46.0",
18-
"@sentry/hono": "10.46.0",
17+
"@sentry/cloudflare": "10.47.0",
18+
"@sentry/hono": "10.47.0",
1919
"hono": "^4.12.7"
2020
},
2121
"devDependencies": {
2222
"@cloudflare/workers-types": "^4.20250922.0",
23-
"@sentry-internal/test-utils": "10.46.0",
23+
"@sentry-internal/test-utils": "10.47.0",
2424
"eslint-plugin-regexp": "^1.15.0",
2525
"vitest": "^3.2.4",
2626
"wrangler": "4.61.0"

dev-packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/e2e-tests",
3-
"version": "10.46.0",
3+
"version": "10.47.0",
44
"license": "MIT",
55
"private": true,
66
"scripts": {

dev-packages/external-contributor-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/external-contributor-gh-action",
33
"description": "An internal Github Action to add external contributors to the CHANGELOG.md file.",
4-
"version": "10.46.0",
4+
"version": "10.47.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/node-core-integration-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/node-core-integration-tests",
3-
"version": "10.46.0",
3+
"version": "10.47.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=18"
@@ -34,8 +34,8 @@
3434
"@opentelemetry/resources": "^2.6.1",
3535
"@opentelemetry/sdk-trace-base": "^2.6.1",
3636
"@opentelemetry/semantic-conventions": "^1.40.0",
37-
"@sentry/core": "10.46.0",
38-
"@sentry/node-core": "10.46.0",
37+
"@sentry/core": "10.47.0",
38+
"@sentry/node-core": "10.47.0",
3939
"body-parser": "^2.2.2",
4040
"cors": "^2.8.5",
4141
"cron": "^3.1.6",

0 commit comments

Comments
 (0)