Skip to content

Commit 42ef361

Browse files
authored
Merge pull request #11883 from getsentry/prepare-release/8.0.0-beta.6
meta(changelog): Update changelog for v8.0.0-beta.6
2 parents 033b8fb + cce2404 commit 42ef361

File tree

121 files changed

+3701
-1274
lines changed

Some content is hidden

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

121 files changed

+3701
-1274
lines changed

.github/CODEOWNERS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
1+
packages/replay-internal @getsentry/replay-sdk-web
2+
packages/replay-worker @getsentry/replay-sdk-web
3+
packages/replay-canvas @getsentry/replay-sdk-web
4+
packages/feedback @getsentry/feedback-sdk
5+
dev-packages/browser-integration-tests/suites/replay @getsentry/replay-sdk-web

.github/workflows/build.yml

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ jobs:
509509
strategy:
510510
fail-fast: false
511511
matrix:
512-
node: [14, 16, 18, 20, 21]
512+
node: [14, 16, 18, 20, 22]
513513
steps:
514514
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
515515
uses: actions/checkout@v4
@@ -569,7 +569,7 @@ jobs:
569569
strategy:
570570
fail-fast: false
571571
matrix:
572-
node: [14, 16, 18, 20, 21]
572+
node: [14, 16, 18, 20, 22]
573573
steps:
574574
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
575575
uses: actions/checkout@v4
@@ -832,12 +832,12 @@ jobs:
832832
strategy:
833833
fail-fast: false
834834
matrix:
835-
node: [14, 16, 18, 20, 21]
835+
node: [14, 16, 18, 20, 22]
836836
typescript:
837837
- false
838838
include:
839839
# Only check typescript for latest version (to streamline CI)
840-
- node: 20
840+
- node: 22
841841
typescript: '3.8'
842842
steps:
843843
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
@@ -874,7 +874,7 @@ jobs:
874874
strategy:
875875
fail-fast: false
876876
matrix:
877-
node: [18, 20, 21]
877+
node: [18, 20, 22]
878878
remix: [1, 2]
879879
# Remix v2 only supports Node 18+, so run Node 14, 16 tests separately
880880
include:
@@ -989,6 +989,8 @@ jobs:
989989
strategy:
990990
fail-fast: false
991991
matrix:
992+
is_dependabot:
993+
- ${{ github.actor == 'dependabot[bot]' }}
992994
test-application:
993995
[
994996
'angular-17',
@@ -1006,6 +1008,7 @@ jobs:
10061008
'nextjs-14',
10071009
'react-create-hash-router',
10081010
'react-router-6-use-routes',
1011+
'react-router-5',
10091012
'standard-frontend-react',
10101013
'svelte-5',
10111014
'sveltekit',
@@ -1042,6 +1045,10 @@ jobs:
10421045
- test-application: 'nextjs-app-dir'
10431046
build-command: 'test:build-13'
10441047
label: 'nextjs-app-dir (next@13)'
1048+
exclude:
1049+
- is_dependabot: true
1050+
test-application: 'cloudflare-astro'
1051+
10451052
steps:
10461053
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
10471054
uses: actions/checkout@v4
@@ -1287,6 +1294,8 @@ jobs:
12871294
node: 18
12881295
- os: ubuntu-20.04
12891296
node: 20
1297+
- os: ubuntu-20.04
1298+
node: 22
12901299

12911300
# x64 musl
12921301
- os: ubuntu-20.04
@@ -1298,6 +1307,9 @@ jobs:
12981307
- os: ubuntu-20.04
12991308
container: node:20-alpine3.17
13001309
node: 20
1310+
- os: ubuntu-20.04
1311+
container: node:22-alpine3.18
1312+
node: 22
13011313

13021314
# arm64 glibc
13031315
- os: ubuntu-20.04
@@ -1309,6 +1321,9 @@ jobs:
13091321
- os: ubuntu-20.04
13101322
arch: arm64
13111323
node: 20
1324+
- os: ubuntu-20.04
1325+
arch: arm64
1326+
node: 22
13121327

13131328
# arm64 musl
13141329
- os: ubuntu-20.04
@@ -1323,6 +1338,10 @@ jobs:
13231338
arch: arm64
13241339
container: node:20-alpine3.17
13251340
node: 20
1341+
- os: ubuntu-20.04
1342+
arch: arm64
1343+
container: node:22-alpine3.18
1344+
node: 22
13261345

13271346
# macos x64
13281347
- os: macos-11
@@ -1334,35 +1353,42 @@ jobs:
13341353
- os: macos-11
13351354
node: 20
13361355
arch: x64
1356+
- os: macos-11
1357+
node: 22
1358+
arch: x64
13371359

13381360
# macos arm64
13391361
- os: macos-12
13401362
arch: arm64
13411363
node: 16
13421364
target_platform: darwin
1343-
13441365
- os: macos-12
13451366
arch: arm64
13461367
node: 18
13471368
target_platform: darwin
1348-
13491369
- os: macos-12
13501370
arch: arm64
13511371
node: 20
13521372
target_platform: darwin
1373+
- os: macos-12
1374+
arch: arm64
1375+
node: 22
1376+
target_platform: darwin
13531377

13541378
# windows x64
13551379
- os: windows-2022
13561380
node: 16
13571381
arch: x64
1358-
13591382
- os: windows-2022
13601383
node: 18
13611384
arch: x64
1362-
13631385
- os: windows-2022
13641386
node: 20
13651387
arch: x64
1388+
- os: windows-2022
1389+
node: 22
1390+
arch: x64
1391+
13661392
steps:
13671393
- name: Setup (alpine)
13681394
if: contains(matrix.container, 'alpine')

CHANGELOG.md

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

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

7+
## 8.0.0-beta.6
8+
9+
This beta release contains various bugfixes and improvements for the v8 beta cycle.
10+
11+
- feat: Add `tunnel` support to multiplexed transport (#11806)
12+
- feat: Export `spanToBaggageHeader` utility (#11881)
13+
- feat(browser): Disable standalone `http.client` spans (#11879)
14+
- feat(ember): Update ember dependencies (#11753)
15+
- feat(fedback): Convert CDN bundles to use async feedback for lower bundle sizes (#11791)
16+
- feat(feedback): Add `captureFeedback` method (#11428)
17+
- feat(feedback): Have screenshot by default (#11839)
18+
- feat(integrations): Add zod integration (#11144)
19+
- feat(ioredis): Add integration for `ioredis` (#11856)
20+
- feat(nextjs): Add transaction name to scope of server component (#11850)
21+
- feat(nextjs): Be smarter in warning about old ways of init configuration (#11882)
22+
- feat(nextjs): Set transaction names on scope for route handlers and generation functions (#11869)
23+
- feat(node): Support Node 22 (#11871)
24+
- fix(angular): Run tracing calls outside Angular (#11748)
25+
- fix(feedback): Be consistent about whether screenshot should and can render (#11859)
26+
- fix(nestjs): Ensure Nest.js interceptor works with non-http context (#11880)
27+
- fix(node): Fix nest.js error handler (#11874)
28+
- fix(react): Fix react router v4/v5 instrumentation (#11855)
29+
- ref: Add geo location types (#11847)
30+
731
## 8.0.0-beta.5
832

933
This beta release contains various bugfixes and improvements for the v8 beta cycle.

CODEOWNERS

Lines changed: 0 additions & 5 deletions
This file was deleted.

MIGRATION.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ We now support the following integrations out of the box without extra configura
351351
- `mongooseIntegration`: Automatically instruments Mongoose
352352
- `mysqlIntegration`: Automatically instruments MySQL
353353
- `mysql2Integration`: Automatically instruments MySQL2
354+
- `redisIntegration`: Automatically instruments Redis (supported clients: ioredis)
354355
- `nestIntegration`: Automatically instruments Nest.js
355356
- `postgresIntegration`: Automatically instruments PostgreSQL
356357
- `prismaIntegration`: Automatically instruments Prisma
@@ -832,6 +833,24 @@ The following is an example of how to initialize the serverside SDK in a Next.js
832833
}
833834
```
834835

836+
If you need to import a Node.js specific integration (like for example `@sentry/profiling-node`), you will have to
837+
import the package using a dynamic import to prevent Next.js from bundling Node.js APIs into bundles for other
838+
runtime environments (like the Browser or the Edge runtime). You can do so as follows:
839+
840+
```ts
841+
import * as Sentry from '@sentry/nextjs';
842+
843+
export async function register() {
844+
if (process.env.NEXT_RUNTIME === 'nodejs') {
845+
const { nodeProfilingIntegration } = await import('@sentry/profiling-node');
846+
Sentry.init({
847+
dsn: 'YOUR_DSN',
848+
integrations: [nodeProfilingIntegration()],
849+
});
850+
}
851+
}
852+
```
853+
835854
Note that you can initialize the SDK differently depending on which server runtime is being used.
836855

837856
If you are using a
@@ -959,12 +978,21 @@ replacement API.
959978
Removed top-level exports: `InitSentryForEmber`, `StartTransactionFunction`
960979

961980
- [Removal of `InitSentryForEmber` export](./MIGRATION.md#removal-of-initsentryforember-export)
981+
- [Updated Ember Dependencies](./MIGRATION.md#updated-ember-dependencies)
962982

963983
#### Removal of `InitSentryForEmber` export
964984

965985
The `InitSentryForEmber` export has been removed. Instead, you should use the `Sentry.init` method to initialize the
966986
SDK.
967987

988+
#### Updated Ember Dependencies
989+
990+
The following dependencies that the SDK uses have been bumped to a more recent version:
991+
992+
- `ember-auto-import` is bumped to `^2.4.3`
993+
- `ember-cli-babel` is bumped to `^8.2.0`
994+
- `ember-cli-typescript` is bumped to `^5.3.0`
995+
968996
### Svelte SDK
969997

970998
Removed top-level exports: `componentTrackingPreprocessor`
@@ -1693,7 +1721,7 @@ In v8, the Span class is heavily reworked. The following properties & methods ar
16931721
- `span.traceId`: Use `span.spanContext().traceId` instead.
16941722
- `span.name`: Use `spanToJSON(span).description` instead.
16951723
- `span.description`: Use `spanToJSON(span).description` instead.
1696-
- `span.getDynamicSamplingContext`: Use `getDynamicSamplingContextFromSpan` utility function instead.
1724+
- `span.getDynamicSamplingContext`: Use `spanToBaggageHeader(span)` utility function instead.
16971725
- `span.tags`: Set tags on the surrounding scope instead, or use attributes.
16981726
- `span.data`: Use `spanToJSON(span).data` instead.
16991727
- `span.setTag()`: Use `span.setAttribute()` instead or set tags on the surrounding scope.

dev-packages/browser-integration-tests/suites/feedback/captureFeedback/test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ sentryTest('should capture feedback', async ({ getLocalTestPath, page }) => {
5353
source: 'widget',
5454
url: expect.stringContaining('/dist/index.html'),
5555
},
56+
trace: {
57+
trace_id: expect.stringMatching(/\w{32}/),
58+
span_id: expect.stringMatching(/\w{16}/),
59+
},
5660
},
5761
level: 'info',
5862
timestamp: expect.any(Number),

dev-packages/browser-integration-tests/suites/feedback/captureFeedbackAndReplay/hasSampling/test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ sentryTest('should capture feedback', async ({ forceFlushReplay, getLocalTestPat
8989
source: 'widget',
9090
url: expect.stringContaining('/dist/index.html'),
9191
},
92+
trace: {
93+
trace_id: expect.stringMatching(/\w{32}/),
94+
span_id: expect.stringMatching(/\w{16}/),
95+
},
9296
},
9397
level: 'info',
9498
timestamp: expect.any(Number),
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import * as Sentry from '@sentry/browser';
2+
import { captureConsoleIntegration } from '@sentry/browser';
3+
4+
window.Sentry = Sentry;
5+
6+
Sentry.init({
7+
dsn: 'https://[email protected]/1337',
8+
integrations: [captureConsoleIntegration()],
9+
autoSessionTracking: false,
10+
});
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
console.log('console log');
2+
console.warn('console warn');
3+
console.error('console error');
4+
console.info('console info');
5+
console.trace('console trace');
6+
7+
console.error(new Error('console error with error object'));
8+
console.trace(new Error('console trace with error object'));

0 commit comments

Comments
 (0)