Skip to content

Commit c191907

Browse files
authored
Merge branch 'develop' into cg/fetch-spans
2 parents 43f9648 + eb23dc4 commit c191907

File tree

244 files changed

+3438
-2528
lines changed

Some content is hidden

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

244 files changed

+3438
-2528
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: 💡 [Internal] Blank Issue
2+
description: Only for Sentry Employees! Create an issue without a template.
3+
body:
4+
- type: textarea
5+
id: description
6+
attributes:
7+
label: Description
8+
validations:
9+
required: true

.github/workflows/build.yml

Lines changed: 23 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ jobs:
105105
- *shared
106106
- 'packages/browser/**'
107107
- 'packages/browser-utils/**'
108-
- 'packages/replay/**'
108+
- 'packages/replay-internal/**'
109+
- 'packages/replay-worker/**'
109110
- 'packages/replay-canvas/**'
110111
- 'packages/feedback/**'
111112
- 'packages/wasm/**'
@@ -131,6 +132,7 @@ jobs:
131132
- *node
132133
- 'packages/nextjs/**'
133134
- 'packages/react/**'
135+
- 'packages/vercel-edge/**'
134136
remix:
135137
- *shared
136138
- *browser
@@ -147,8 +149,10 @@ jobs:
147149
- 'dev-packages/e2e-tests/test-applications/node-profiling/**'
148150
deno:
149151
- *shared
150-
- *browser
151152
- 'packages/deno/**'
153+
bun:
154+
- *shared
155+
- 'packages/bun/**'
152156
any_code:
153157
- '!**/*.md'
154158
@@ -166,6 +170,7 @@ jobs:
166170
changed_profiling_node: ${{ steps.changed.outputs.profiling_node }}
167171
changed_profiling_node_bindings: ${{ steps.changed.outputs.profiling_node_bindings }}
168172
changed_deno: ${{ steps.changed.outputs.deno }}
173+
changed_bun: ${{ steps.changed.outputs.bun }}
169174
changed_browser: ${{ steps.changed.outputs.browser }}
170175
changed_browser_integration: ${{ steps.changed.outputs.browser_integration }}
171176
changed_any_code: ${{ steps.changed.outputs.any_code }}
@@ -451,6 +456,7 @@ jobs:
451456
job_bun_unit_tests:
452457
name: Bun Unit Tests
453458
needs: [job_get_metadata, job_build]
459+
if: needs.job_get_metadata.outputs.changed_bun == 'true' || github.event_name != 'pull_request'
454460
timeout-minutes: 10
455461
runs-on: ubuntu-20.04
456462
strategy:
@@ -513,7 +519,7 @@ jobs:
513519
strategy:
514520
fail-fast: false
515521
matrix:
516-
node: [14, 16, 18, 20, 22]
522+
node: [14, 16, 18, 20, 22.4]
517523
steps:
518524
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
519525
uses: actions/checkout@v4
@@ -573,7 +579,7 @@ jobs:
573579
strategy:
574580
fail-fast: false
575581
matrix:
576-
node: [14, 16, 18, 20, 22]
582+
node: [14, 16, 18, 20, 22.4]
577583
steps:
578584
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
579585
uses: actions/checkout@v4
@@ -773,33 +779,6 @@ jobs:
773779
name: playwright-traces
774780
path: dev-packages/browser-integration-tests/test-results
775781

776-
job_browser_build_tests:
777-
name: Browser Build Tests
778-
needs: [job_get_metadata, job_build]
779-
runs-on: ubuntu-20.04
780-
timeout-minutes: 5
781-
steps:
782-
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
783-
uses: actions/checkout@v4
784-
with:
785-
ref: ${{ env.HEAD_COMMIT }}
786-
- name: Set up Node
787-
uses: actions/setup-node@v4
788-
with:
789-
node-version-file: 'package.json'
790-
- name: Restore caches
791-
uses: ./.github/actions/restore-cache
792-
env:
793-
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
794-
- name: Run browser build tests
795-
run: |
796-
cd packages/browser
797-
yarn test:package
798-
- name: Run utils build tests
799-
run: |
800-
cd packages/utils
801-
yarn test:package
802-
803782
job_check_for_faulty_dts:
804783
name: Check for faulty .d.ts files
805784
needs: [job_get_metadata, job_build]
@@ -837,12 +816,12 @@ jobs:
837816
strategy:
838817
fail-fast: false
839818
matrix:
840-
node: [14, 16, 18, 20, 22]
819+
node: [14, 16, 18, 20, 22.4]
841820
typescript:
842821
- false
843822
include:
844823
# Only check typescript for latest version (to streamline CI)
845-
- node: 22
824+
- node: 22.4
846825
typescript: '3.8'
847826
steps:
848827
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
@@ -879,7 +858,7 @@ jobs:
879858
strategy:
880859
fail-fast: false
881860
matrix:
882-
node: [18, 20, 22]
861+
node: [18, 20, 22.4]
883862
remix: [1, 2]
884863
# Remix v2 only supports Node 18+, so run 16 tests separately
885864
include:
@@ -1031,7 +1010,9 @@ jobs:
10311010
'generic-ts3.8',
10321011
'node-fastify',
10331012
'node-hapi',
1034-
'nestjs',
1013+
'nestjs-basic',
1014+
'nestjs-distributed-tracing',
1015+
'nestjs-with-submodules',
10351016
'node-exports-test-app',
10361017
'node-koa',
10371018
'node-connect',
@@ -1309,7 +1290,6 @@ jobs:
13091290
[
13101291
job_build,
13111292
job_compile_bindings_profiling_node,
1312-
job_browser_build_tests,
13131293
job_browser_unit_tests,
13141294
job_bun_unit_tests,
13151295
job_deno_unit_tests,
@@ -1401,7 +1381,7 @@ jobs:
14011381
- os: ubuntu-20.04
14021382
node: 20
14031383
- os: ubuntu-20.04
1404-
node: 22
1384+
node: 22.4
14051385

14061386
# x64 musl
14071387
- os: ubuntu-20.04
@@ -1415,7 +1395,7 @@ jobs:
14151395
node: 20
14161396
- os: ubuntu-20.04
14171397
container: node:22-alpine3.18
1418-
node: 22
1398+
node: 22.4
14191399

14201400
# arm64 glibc
14211401
- os: ubuntu-20.04
@@ -1429,7 +1409,7 @@ jobs:
14291409
node: 20
14301410
- os: ubuntu-20.04
14311411
arch: arm64
1432-
node: 22
1412+
node: 22.4
14331413

14341414
# arm64 musl
14351415
- os: ubuntu-20.04
@@ -1447,7 +1427,7 @@ jobs:
14471427
- os: ubuntu-20.04
14481428
arch: arm64
14491429
container: node:22-alpine3.18
1450-
node: 22
1430+
node: 22.4
14511431

14521432
# macos x64
14531433
- os: macos-13
@@ -1460,7 +1440,7 @@ jobs:
14601440
node: 20
14611441
arch: x64
14621442
- os: macos-13
1463-
node: 22
1443+
node: 22.4
14641444
arch: x64
14651445

14661446
# macos arm64
@@ -1478,7 +1458,7 @@ jobs:
14781458
target_platform: darwin
14791459
- os: macos-13
14801460
arch: arm64
1481-
node: 22
1461+
node: 22.4
14821462
target_platform: darwin
14831463

14841464
# windows x64
@@ -1492,7 +1472,7 @@ jobs:
14921472
node: 20
14931473
arch: x64
14941474
- os: windows-2022
1495-
node: 22
1475+
node: 22.4
14961476
arch: x64
14971477

14981478
steps:

.github/workflows/canary.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
${{ github.workspace }}/node_modules
1919
${{ github.workspace }}/packages/*/node_modules
2020
${{ github.workspace }}/dev-packages/*/node_modules
21+
${{ github.workspace }}/packages/utils/build
2122
2223
permissions:
2324
contents: read

.github/workflows/external-contributors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
&& github.event.pull_request.author_association != 'COLLABORATOR'
1919
&& github.event.pull_request.author_association != 'MEMBER'
2020
&& github.event.pull_request.author_association != 'OWNER'
21-
&& github.actor != 'dependabot[bot]'
21+
&& endsWith(github.actor, '[bot]') == false
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: Set up Node

.size-limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ module.exports = [
177177
path: createCDNPath('bundle.tracing.replay.min.js'),
178178
gzip: false,
179179
brotli: false,
180-
limit: '221 KB',
180+
limit: '230 KB',
181181
},
182182
{
183183
name: 'CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed',

CHANGELOG.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,49 @@
88

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

11-
Work in this release was contributed by @GitSquared. Thank you for your contribution!
11+
## 8.19.0
12+
13+
- feat(core): Align Span interface with OTEL (#12898)
14+
- fix(angular): Remove `afterSendEvent` listener once root injector is destroyed (#12786)
15+
- fix(browser): Fix bug causing unintentional dropping of transactions (#12933)
16+
- fix(feedback): Add a missing call of Actor.appendToDom method when DOMContentLoaded event is triggered (#12973)
17+
- feat(vercel-edge): Add dedupe as default integration (#12957)
18+
- fix(node): Pass inferred name & attributes to `tracesSampler` (#12945)
19+
- feat(express): Allow to pass options to `setupExpressErrorHandler` (#12952)
20+
21+
Work in this release was contributed by @jaspreet57 and @arturovt. Thank you for your contribution!
22+
23+
## 8.18.0
24+
25+
### Important Changes
26+
27+
- **ref: Deprecate `enableTracing` (12897)**
28+
29+
The `enableTracing` option has been deprecated and will be removed in the next major version. We recommend removing it
30+
in favor of the `tracesSampleRate` and `tracesSampler` options. If you want to enable performance monitoring, please set
31+
the `tracesSampleRate` to a sample rate of your choice, or provide a sampling function as `tracesSampler` option
32+
instead. If you want to disable performance monitoring, remove the `tracesSampler` and `tracesSampleRate` options.
33+
34+
### Other Changes
35+
36+
- feat(node): Expose `exclude` and `include` options for ESM loader (#12910)
37+
- feat(browser): Add user agent to INP standalone span attributes (#12896)
38+
- feat(nextjs): Add `experimental_captureRequestError` for `onRequestError` hook (#12885)
39+
- feat(replay): Bump `rrweb` to 2.25.0 (#12478)
40+
- feat(tracing): Add long animation frame tracing (#12646)
41+
- fix: Cleanup hooks when they are not used anymore (#12852)
42+
- fix(angular): Guard `ErrorEvent` check in ErrorHandler to avoid throwing in Node environments (#12892)
43+
- fix(inp): Ensure INP spans have correct transaction (#12871)
44+
- fix(nestjs): Do not make SentryTraced() decorated functions async (#12879)
45+
- fix(nextjs): Support automatic instrumentation for app directory with custom page extensions (#12858)
46+
- fix(node): Ensure correct URL is passed to `ignoreIncomingRequests` callback (#12929)
47+
- fix(otel): Do not add `otel.kind: INTERNAL` attribute (#12841)
48+
- fix(solidstart): Set proper sentry origin for solid router integration when used in solidstart sdk (#12919)
49+
- fix(sveltekit): Add Vite peer dep for proper type resolution (#12926)
50+
- fix(tracing): Ensure you can pass `null` as `parentSpan` in `startSpan*` (#12928)
51+
- ref(core): Small bundle size improvement (#12830)
52+
53+
Work in this release was contributed by @GitSquared, @ziyadkhalil and @mcous. Thank you for your contributions!
1254

1355
## 8.17.0
1456

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ able to use it. From the top level of the repo, there are three commands availab
4040
dependencies (`utils`, `core`, `browser`, etc), and all packages which depend on it (currently `gatsby` and `nextjs`))
4141
- `yarn build:dev:watch`, which runs `yarn build:dev` in watch mode (recommended)
4242

43+
Note: Due to package incompatibilities between Python versions, building native binaries currently requires a Python
44+
version <3.12.
45+
4346
You can also run a production build via `yarn build`, which will build everything except for the tarballs for publishing
4447
to NPM. You can use this if you want to bundle Sentry yourself. The build output can be found in the packages `build/`
4548
folder, e.g. `packages/browser/build`. Bundled files can be found in `packages/browser/build/bundles`. Note that there

MIGRATION.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ Removed top-level exports: `enableAnrDetection`, `Anr`, `deepReadDirSync`, `runW
711711
- [Removal of `enableAnrDetection` and `Anr` class](./MIGRATION.md#removal-of-enableanrdetection-and-anr-class)
712712
- [Removal of `deepReadDirSync` method](./MIGRATION.md#removal-of-deepreaddirsync-method)
713713
- [Removal of `runWithAsyncContext` method](./MIGRATION.md#removal-of-runwithasynccontext-method)
714+
- [Removal of `Apollo` integration](./MIGRATION.md#removal-of-apollo-integration)
714715
715716
#### Removal of `enableAnrDetection` and `Anr` class
716717
@@ -737,6 +738,21 @@ Sentry.withIsolationScope(() => {
737738
});
738739
```
739740
741+
#### Removal of Apollo integration
742+
743+
The Apollo integration has been removed in `8.x` as `8.x` automatically adds GraphQL support via `graphqlIntegration`
744+
which is automatically enabled.
745+
746+
```js
747+
// before (v7)
748+
Sentry.init({
749+
integrations: [Sentry.integrations.Apollo()],
750+
});
751+
752+
// after (v8)
753+
Sentry.init({});
754+
```
755+
740756
### Next.js SDK
741757
742758
Removed top-level exports: `withSentryApi`, `withSentryAPI`, `withSentryGetServerSideProps`, `withSentryGetStaticProps`,

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ package. Please refer to the README and instructions of those SDKs for more deta
5353
- [`@sentry/vue`](https://github.com/getsentry/sentry-javascript/tree/master/packages/vue): Browser SDK for Vue
5454
- [`@sentry/solid`](https://github.com/getsentry/sentry-javascript/tree/master/packages/solid): Browser SDK for Solid
5555
- [`@sentry/gatsby`](https://github.com/getsentry/sentry-javascript/tree/master/packages/gatsby): SDK for Gatsby
56+
- [`@sentry/nestjs`](https://github.com/getsentry/sentry-javascript/tree/master/packages/nestjs): SDK for NestJS
5657
- [`@sentry/nextjs`](https://github.com/getsentry/sentry-javascript/tree/master/packages/nextjs): SDK for Next.js
5758
- [`@sentry/remix`](https://github.com/getsentry/sentry-javascript/tree/master/packages/remix): SDK for Remix
5859
- [`@sentry/aws-serverless`](https://github.com/getsentry/sentry-javascript/tree/master/packages/aws-serverless): SDK

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": "8.17.0",
3+
"version": "8.19.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -43,7 +43,7 @@
4343
"@babel/preset-typescript": "^7.16.7",
4444
"@playwright/test": "^1.44.1",
4545
"@sentry-internal/rrweb": "2.11.0",
46-
"@sentry/browser": "8.17.0",
46+
"@sentry/browser": "8.19.0",
4747
"axios": "1.6.7",
4848
"babel-loader": "^8.2.2",
4949
"html-webpack-plugin": "^5.5.0",

0 commit comments

Comments
 (0)