Skip to content

Commit 35f5d9b

Browse files
authored
Merge branch 'develop' into timfish/time-side-effects
2 parents 1f73e1d + d2a9826 commit 35f5d9b

File tree

377 files changed

+5233
-7613
lines changed

Some content is hidden

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

377 files changed

+5233
-7613
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ updates:
1313
schedule:
1414
interval: 'weekly'
1515
allow:
16-
- dependency-name: "@sentry/cli"
17-
- dependency-name: "@sentry/vite-plugin"
18-
- dependency-name: "@sentry/webpack-plugin"
19-
- dependency-name: "@sentry/rollup-plugin"
20-
- dependency-name: "@sentry/esbuild-plugin"
16+
- dependency-name: "@sentry/*"
2117
- dependency-name: "@opentelemetry/*"
2218
- dependency-name: "@prisma/instrumentation"
19+
- dependency-name: "opentelemetry-instrumentation-remix"
2320
versioning-strategy: increase
2421
commit-message:
2522
prefix: feat

.github/workflows/build.yml

Lines changed: 7 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ jobs:
437437
with:
438438
node-version-file: 'package.json'
439439
- name: Set up Deno
440-
uses: denoland/setup-deno@v1.5.1
440+
uses: denoland/setup-deno@v2.0.1
441441
with:
442442
deno-version: v1.38.5
443443
- name: Restore caches
@@ -858,7 +858,7 @@ jobs:
858858
if: always() && needs.job_e2e_prepare.result == 'success'
859859
needs: [job_get_metadata, job_build, job_e2e_prepare]
860860
runs-on: ubuntu-20.04
861-
timeout-minutes: 10
861+
timeout-minutes: 15
862862
env:
863863
# We just use a dummy DSN here, only send to the tunnel anyhow
864864
E2E_TEST_DSN: 'https://username@domain/123'
@@ -914,6 +914,7 @@ jobs:
914914
'react-router-6',
915915
'solid',
916916
'solidstart',
917+
'solidstart-spa',
917918
'svelte-5',
918919
'sveltekit',
919920
'sveltekit-2',
@@ -1037,6 +1038,7 @@ jobs:
10371038
retention-days: 7
10381039

10391040
- name: Pre-process E2E Test Dumps
1041+
if: always()
10401042
run: |
10411043
node ./scripts/normalize-e2e-test-dump-transaction-events.js
10421044
@@ -1069,7 +1071,7 @@ jobs:
10691071
github.actor != 'dependabot[bot]'
10701072
needs: [job_get_metadata, job_build, job_e2e_prepare]
10711073
runs-on: ubuntu-20.04
1072-
timeout-minutes: 10
1074+
timeout-minutes: 15
10731075
env:
10741076
E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }}
10751077
E2E_TEST_DSN: ${{ secrets.E2E_TEST_DSN }}
@@ -1193,6 +1195,7 @@ jobs:
11931195
run: pnpm ${{ matrix.assert-command || 'test:assert' }}
11941196

11951197
- name: Pre-process E2E Test Dumps
1198+
if: always()
11961199
run: |
11971200
node ./scripts/normalize-e2e-test-dump-transaction-events.js
11981201
@@ -1232,7 +1235,7 @@ jobs:
12321235
)
12331236
needs: [job_get_metadata, job_build, job_e2e_prepare]
12341237
runs-on: ubuntu-20.04
1235-
timeout-minutes: 10
1238+
timeout-minutes: 15
12361239
env:
12371240
E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }}
12381241
E2E_TEST_DSN: ${{ secrets.E2E_TEST_DSN }}
@@ -1343,48 +1346,6 @@ jobs:
13431346
run: |
13441347
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1
13451348
1346-
overhead_metrics:
1347-
name: Overhead metrics
1348-
needs: [job_get_metadata, job_build]
1349-
runs-on: ubuntu-20.04
1350-
timeout-minutes: 30
1351-
if: |
1352-
contains(github.event.pull_request.labels.*.name, 'ci-overhead-measurements')
1353-
steps:
1354-
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
1355-
uses: actions/checkout@v4
1356-
with:
1357-
ref: ${{ env.HEAD_COMMIT }}
1358-
- name: Set up Node
1359-
uses: actions/setup-node@v4
1360-
with:
1361-
node-version-file: 'package.json'
1362-
- name: Restore caches
1363-
uses: ./.github/actions/restore-cache
1364-
with:
1365-
dependency_cache_key: ${{ needs.job_build.outputs.dependency_cache_key }}
1366-
1367-
- name: Collect
1368-
run: yarn ci:collect
1369-
working-directory: dev-packages/overhead-metrics
1370-
1371-
- name: Process
1372-
id: process
1373-
run: yarn ci:process
1374-
working-directory: dev-packages/overhead-metrics
1375-
# Don't run on forks - the PR comment cannot be added.
1376-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
1377-
env:
1378-
GITHUB_TOKEN: ${{ github.token }}
1379-
1380-
- name: Upload results
1381-
uses: actions/upload-artifact@v4
1382-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
1383-
with:
1384-
name: ${{ steps.process.outputs.artifactName }}
1385-
path: ${{ steps.process.outputs.artifactPath }}
1386-
retention-days: 7
1387-
13881349
job_compile_bindings_profiling_node:
13891350
name: Compile & Test Profiling Bindings (v${{ matrix.node }}) ${{ matrix.target_platform || matrix.os }}, ${{ matrix.node || matrix.container }}, ${{ matrix.arch || matrix.container }}, ${{ contains(matrix.container, 'alpine') && 'musl' || 'glibc' }}
13901351
needs: [job_get_metadata, job_build]

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
analyze:
3434
name: Analyze
3535
runs-on: ubuntu-latest
36+
# Skip for pushes from dependabot, which is not supported
37+
if: github.event_name == 'pull_request' || github.actor != 'dependabot[bot]'
3638

3739
strategy:
3840
fail-fast: false
@@ -48,7 +50,7 @@ jobs:
4850

4951
# Initializes the CodeQL tools for scanning.
5052
- name: Initialize CodeQL
51-
uses: github/codeql-action/init@v2
53+
uses: github/codeql-action/init@v3
5254
with:
5355
config-file: ./.github/codeql/codeql-config.yml
5456
queries: security-extended
@@ -61,7 +63,7 @@ jobs:
6163
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6264
# If this step fails, then you should remove it and run the build manually (see below)
6365
- name: Autobuild
64-
uses: github/codeql-action/autobuild@v2
66+
uses: github/codeql-action/autobuild@v3
6567

6668
# ℹ️ Command-line programs to run using the OS shell.
6769
# 📚 https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
@@ -75,4 +77,4 @@ jobs:
7577
# make release
7678

7779
- name: Perform CodeQL Analysis
78-
uses: github/codeql-action/analyze@v2
80+
uses: github/codeql-action/analyze@v3

.size-limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ module.exports = [
224224
import: createImport('init'),
225225
ignore: ['next/router', 'next/constants'],
226226
gzip: true,
227-
limit: '39 KB',
227+
limit: '39.1 KB',
228228
},
229229
// SvelteKit SDK (ESM)
230230
{

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,42 @@
1010

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

13+
## 8.36.0
14+
15+
### Important Changes
16+
17+
- **feat(nextjs/vercel-edge/cloudflare): Switch to OTEL for performance monitoring ([#13889](https://github.com/getsentry/sentry-javascript/pull/13889))**
18+
19+
With this release, the Sentry Next.js, and Cloudflare SDKs will now capture performance data based on OpenTelemetry.
20+
Some exceptions apply in cases where Next.js captures inaccurate data itself.
21+
22+
NOTE: You may experience minor differences in transaction names in Sentry.
23+
Most importantly transactions for serverside pages router invocations will now be named `GET /[param]/my/route` instead of `/[param]/my/route`.
24+
This means that those transactions are now better aligned with the OpenTelemetry semantic conventions.
25+
26+
### Other Changes
27+
28+
- deps: Bump bundler plugins and CLI to 2.22.6 and 2.37.0 respectively ([#14050](https://github.com/getsentry/sentry-javascript/pull/14050))
29+
- feat(deps): bump @opentelemetry/instrumentation-aws-sdk from 0.44.0 to 0.45.0 ([#14099](https://github.com/getsentry/sentry-javascript/pull/14099))
30+
- feat(deps): bump @opentelemetry/instrumentation-connect from 0.39.0 to 0.40.0 ([#14101](https://github.com/getsentry/sentry-javascript/pull/14101))
31+
- feat(deps): bump @opentelemetry/instrumentation-express from 0.43.0 to 0.44.0 ([#14102](https://github.com/getsentry/sentry-javascript/pull/14102))
32+
- feat(deps): bump @opentelemetry/instrumentation-fs from 0.15.0 to 0.16.0 ([#14098](https://github.com/getsentry/sentry-javascript/pull/14098))
33+
- feat(deps): bump @opentelemetry/instrumentation-kafkajs from 0.3.0 to 0.4.0 ([#14100](https://github.com/getsentry/sentry-javascript/pull/14100))
34+
- feat(nextjs): Add method and url to route handler request data ([#14084](https://github.com/getsentry/sentry-javascript/pull/14084))
35+
- feat(node): Add breadcrumbs for `child_process` and `worker_thread` ([#13896](https://github.com/getsentry/sentry-javascript/pull/13896))
36+
- fix(core): Ensure standalone spans are not sent if SDK is disabled ([#14088](https://github.com/getsentry/sentry-javascript/pull/14088))
37+
- fix(nextjs): Await flush in api handlers ([#14023](https://github.com/getsentry/sentry-javascript/pull/14023))
38+
- fix(nextjs): Don't leak webpack types into exports ([#14116](https://github.com/getsentry/sentry-javascript/pull/14116))
39+
- fix(nextjs): Fix matching logic for file convention type for root level components ([#14038](https://github.com/getsentry/sentry-javascript/pull/14038))
40+
- fix(nextjs): Respect directives in value injection loader ([#14083](https://github.com/getsentry/sentry-javascript/pull/14083))
41+
- fix(nuxt): Only wrap `.mjs` entry files in rollup ([#14060](https://github.com/getsentry/sentry-javascript/pull/14060))
42+
- fix(nuxt): Re-export all exported bindings ([#14086](https://github.com/getsentry/sentry-javascript/pull/14086))
43+
- fix(nuxt): Server-side setup in readme ([#14049](https://github.com/getsentry/sentry-javascript/pull/14049))
44+
- fix(profiling-node): Always warn when running on incompatible major version of Node.js ([#14043](https://github.com/getsentry/sentry-javascript/pull/14043))
45+
- fix(replay): Fix `onError` callback ([#14002](https://github.com/getsentry/sentry-javascript/pull/14002))
46+
- perf(otel): Only calculate current timestamp once ([#14094](https://github.com/getsentry/sentry-javascript/pull/14094))
47+
- test(browser-integration): Add sentry DSN route handler by default ([#14095](https://github.com/getsentry/sentry-javascript/pull/14095))
48+
1349
## 8.35.0
1450

1551
### Beta release of the official Nuxt Sentry SDK

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/replay/test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ sentryTest('should capture a replay', async ({ getLocalTestUrl, page }) => {
1111
sentryTest.skip();
1212
}
1313

14-
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
15-
return route.fulfill({
16-
status: 200,
17-
contentType: 'application/json',
18-
body: JSON.stringify({ id: 'test-id' }),
19-
});
20-
});
21-
2214
const req = waitForReplayRequest(page);
2315

2416
const url = await getLocalTestUrl({ testDir: __dirname });

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/replayError/test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ sentryTest('should capture a replay & attach an error', async ({ getLocalTestUrl
99
sentryTest.skip();
1010
}
1111

12-
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
13-
return route.fulfill({
14-
status: 200,
15-
contentType: 'application/json',
16-
body: JSON.stringify({ id: 'test-id' }),
17-
});
18-
});
19-
2012
const req = waitForReplayRequest(page);
2113

2214
const url = await getLocalTestUrl({ testDir: __dirname });

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/sdkLoadedInMeanwhile/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sentryTest('it does not download the SDK if the SDK was loaded in the meanwhile'
2828
});
2929
});
3030

31-
const tmpDir = await getLocalTestUrl({ testDir: __dirname, skipRouteHandler: true });
31+
const tmpDir = await getLocalTestUrl({ testDir: __dirname, skipRouteHandler: true, skipDsnRouteHandler: true });
3232

3333
await page.route(`${TEST_HOST}/*.*`, route => {
3434
const file = route.request().url().split('/').pop();

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/captureExceptionInOnLoad/test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ import { sentryTest } from '../../../../utils/fixtures';
44
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
55

66
sentryTest('captureException works inside of onLoad', async ({ getLocalTestUrl, page }) => {
7-
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
8-
return route.fulfill({
9-
status: 200,
10-
contentType: 'application/json',
11-
body: JSON.stringify({ id: 'test-id' }),
12-
});
13-
});
14-
157
const url = await getLocalTestUrl({ testDir: __dirname });
168
const req = await waitForErrorRequestOnUrl(page, url);
179

@@ -21,14 +13,6 @@ sentryTest('captureException works inside of onLoad', async ({ getLocalTestUrl,
2113
});
2214

2315
sentryTest('should set SENTRY_SDK_SOURCE value', async ({ getLocalTestUrl, page }) => {
24-
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
25-
return route.fulfill({
26-
status: 200,
27-
contentType: 'application/json',
28-
body: JSON.stringify({ id: 'test-id' }),
29-
});
30-
});
31-
3216
const url = await getLocalTestUrl({ testDir: __dirname });
3317
const req = await waitForErrorRequestOnUrl(page, url);
3418

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customInit/test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ const bundle = process.env.PW_BUNDLE || '';
77
const isLazy = LOADER_CONFIGS[bundle]?.lazy;
88

99
sentryTest('always calls onLoad init correctly', async ({ getLocalTestUrl, page }) => {
10-
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
11-
return route.fulfill({
12-
status: 200,
13-
contentType: 'application/json',
14-
body: JSON.stringify({ id: 'test-id' }),
15-
});
16-
});
17-
1810
const url = await getLocalTestUrl({ testDir: __dirname });
1911

2012
await page.goto(url);

0 commit comments

Comments
 (0)