Skip to content

Commit 2ca125b

Browse files
authored
Merge branch 'develop' into lms/feat-browser-elementtiming
2 parents 0433939 + 23127b6 commit 2ca125b

File tree

72 files changed

+1049
-318
lines changed

Some content is hidden

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

72 files changed

+1049
-318
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44

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

7+
## 9.30.0
8+
9+
- feat(nextjs): Add URL to tags of server components and generation functions issues ([#16500](https://github.com/getsentry/sentry-javascript/pull/16500))
10+
- feat(nextjs): Ensure all packages we auto-instrument are externalized ([#16552](https://github.com/getsentry/sentry-javascript/pull/16552))
11+
- feat(node): Automatically enable `vercelAiIntegration` when `ai` module is detected ([#16565](https://github.com/getsentry/sentry-javascript/pull/16565))
12+
- feat(node): Ensure `modulesIntegration` works in more environments ([#16566](https://github.com/getsentry/sentry-javascript/pull/16566))
13+
- feat(core): Don't gate user on logs with `sendDefaultPii` ([#16527](https://github.com/getsentry/sentry-javascript/pull/16527))
14+
- feat(browser): Add detail to measure spans and add regression tests ([#16557](https://github.com/getsentry/sentry-javascript/pull/16557))
15+
- feat(node): Update Vercel AI span attributes ([#16580](https://github.com/getsentry/sentry-javascript/pull/16580))
16+
- fix(opentelemetry): Ensure only orphaned spans of sent spans are sent ([#16590](https://github.com/getsentry/sentry-javascript/pull/16590))
17+
718
## 9.29.0
819

920
### Important Changes

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": "9.29.0",
3+
"version": "9.30.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -42,7 +42,7 @@
4242
"@babel/preset-typescript": "^7.16.7",
4343
"@playwright/test": "~1.50.0",
4444
"@sentry-internal/rrweb": "2.34.0",
45-
"@sentry/browser": "9.29.0",
45+
"@sentry/browser": "9.30.0",
4646
"@supabase/supabase-js": "2.49.3",
4747
"axios": "1.8.2",
4848
"babel-loader": "^8.2.2",

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": "9.29.0",
3+
"version": "9.30.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/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": "9.29.0",
4+
"version": "9.30.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

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": "9.29.0",
3+
"version": "9.30.0",
44
"license": "MIT",
55
"private": true,
66
"scripts": {

dev-packages/e2e-tests/test-applications/nextjs-14/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@types/node": "^18.19.1",
1818
"@types/react": "18.0.26",
1919
"@types/react-dom": "18.0.9",
20-
"next": "14.1.3",
20+
"next": "14.2.30",
2121
"react": "18.2.0",
2222
"react-dom": "18.2.0",
2323
"typescript": "~5.0.0"

dev-packages/e2e-tests/test-applications/nextjs-15/tests/ai-test.test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ import { waitForTransaction } from '@sentry-internal/test-utils';
33

44
test('should create AI spans with correct attributes', async ({ page }) => {
55
const aiTransactionPromise = waitForTransaction('nextjs-15', async transactionEvent => {
6-
return transactionEvent?.transaction === 'ai-test';
6+
return transactionEvent.transaction === 'GET /ai-test';
77
});
88

99
await page.goto('/ai-test');
1010

1111
const aiTransaction = await aiTransactionPromise;
1212

1313
expect(aiTransaction).toBeDefined();
14-
expect(aiTransaction.contexts?.trace?.op).toBe('function');
15-
expect(aiTransaction.transaction).toBe('ai-test');
14+
expect(aiTransaction.transaction).toBe('GET /ai-test');
1615

1716
const spans = aiTransaction.spans || [];
1817

@@ -35,14 +34,14 @@ test('should create AI spans with correct attributes', async ({ page }) => {
3534
expect(firstPipelineSpan?.data?.['ai.model.id']).toBe('mock-model-id');
3635
expect(firstPipelineSpan?.data?.['ai.model.provider']).toBe('mock-provider');
3736
expect(firstPipelineSpan?.data?.['ai.prompt']).toContain('Where is the first span?');
38-
expect(firstPipelineSpan?.data?.['ai.response.text']).toBe('First span here!');
37+
expect(firstPipelineSpan?.data?.['gen_ai.response.text']).toBe('First span here!');
3938
expect(firstPipelineSpan?.data?.['gen_ai.usage.input_tokens']).toBe(10);
4039
expect(firstPipelineSpan?.data?.['gen_ai.usage.output_tokens']).toBe(20); */
4140

4241
// Second AI call - explicitly enabled telemetry
4342
const secondPipelineSpan = aiPipelineSpans[0];
4443
expect(secondPipelineSpan?.data?.['ai.prompt']).toContain('Where is the second span?');
45-
expect(secondPipelineSpan?.data?.['ai.response.text']).toContain('Second span here!');
44+
expect(secondPipelineSpan?.data?.['gen_ai.response.text']).toContain('Second span here!');
4645

4746
// Third AI call - with tool calls
4847
/* const thirdPipelineSpan = aiPipelineSpans[2];
@@ -51,7 +50,7 @@ test('should create AI spans with correct attributes', async ({ page }) => {
5150
expect(thirdPipelineSpan?.data?.['gen_ai.usage.output_tokens']).toBe(25); */
5251

5352
// Tool call span
54-
/* const toolSpan = toolCallSpans[0];
53+
/* const toolSpan = toolCallSpans[0];
5554
expect(toolSpan?.data?.['ai.toolCall.name']).toBe('getWeather');
5655
expect(toolSpan?.data?.['ai.toolCall.id']).toBe('call-1');
5756
expect(toolSpan?.data?.['ai.toolCall.args']).toContain('San Francisco');

dev-packages/e2e-tests/test-applications/nextjs-app-dir/tests/server-components.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ test('Sends a transaction for a request to app router', async ({ page }) => {
3939
headers: expect.objectContaining({
4040
'user-agent': expect.any(String),
4141
}),
42+
url: expect.stringContaining('/server-component/parameter/1337/42'),
4243
});
4344

4445
// The transaction should not contain any spans with the same name as the transaction

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": "9.29.0",
4+
"version": "9.30.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/node-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/node-integration-tests",
3-
"version": "9.29.0",
3+
"version": "9.30.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=18"
@@ -30,9 +30,9 @@
3030
"@nestjs/common": "11.0.16",
3131
"@nestjs/core": "10.4.6",
3232
"@nestjs/platform-express": "10.4.6",
33-
"@sentry/aws-serverless": "9.29.0",
34-
"@sentry/core": "9.29.0",
35-
"@sentry/node": "9.29.0",
33+
"@sentry/aws-serverless": "9.30.0",
34+
"@sentry/core": "9.30.0",
35+
"@sentry/node": "9.30.0",
3636
"@types/mongodb": "^3.6.20",
3737
"@types/mysql": "^2.15.21",
3838
"@types/pg": "^8.6.5",

0 commit comments

Comments
 (0)