Skip to content

Commit cc09166

Browse files
authored
Merge branch 'develop' into lms/fix-browser-synthetic-true-captureMessage
2 parents 2ec02c1 + 2cff1f7 commit cc09166

File tree

106 files changed

+698
-384
lines changed

Some content is hidden

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

106 files changed

+698
-384
lines changed

.craft.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,12 @@ targets:
142142
id: '@sentry-internal/eslint-config-sdk'
143143
includeNames: /^sentry-internal-eslint-config-sdk-\d.*\.tgz$/
144144

145-
# AWS Lambda Layer target
145+
# TODO(v9): Remove this target
146+
# NOTE: We publish the v8 layer under its own name so people on v8 can still get patches
147+
# whenever we release a new v8 version—otherwise we would overwrite the current major lambda layer.
146148
- name: aws-lambda-layer
147149
includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha|rc)\.\d+)?\.zip$/
148-
layerName: SentryNodeServerlessSDK
150+
layerName: SentryNodeServerlessSDKv8
149151
compatibleRuntimes:
150152
- name: node
151153
versions:
@@ -157,13 +159,10 @@ targets:
157159
- nodejs20.x
158160
license: MIT
159161

160-
# NOTE: We publish the v8 layer under its own name so people on v8 can still get patches
161-
# whenever we release a new v8 version—otherwise we would overwrite the current major lambda layer.
162-
163162
# AWS Lambda Layer target
164163
- name: aws-lambda-layer
165164
includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha|rc)\.\d+)?\.zip$/
166-
layerName: SentryNodeServerlessSDKv8
165+
layerName: SentryNodeServerlessSDK
167166
compatibleRuntimes:
168167
- name: node
169168
versions:

.size-limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ module.exports = [
147147
path: 'packages/svelte/build/esm/index.js',
148148
import: createImport('init'),
149149
gzip: true,
150-
limit: '24.5 KB',
150+
limit: '25 KB',
151151
},
152152
// Browser CDN bundles
153153
{

CHANGELOG.md

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

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

13+
Work in this release was contributed by @anonrig. Thank you for your contribution!
14+
15+
## 8.44.0
16+
17+
### Deprecations
18+
19+
- **feat: Deprecate `autoSessionTracking` ([#14640](https://github.com/getsentry/sentry-javascript/pull/14640))**
20+
21+
Deprecates `autoSessionTracking`.
22+
To enable session tracking, it is recommended to unset `autoSessionTracking` and ensure that either, in browser environments
23+
the `browserSessionIntegration` is added, or in server environments the `httpIntegration` is added.
24+
25+
To disable session tracking, it is recommended to unset `autoSessionTracking` and to remove the `browserSessionIntegration` in
26+
browser environments, or in server environments configure the `httpIntegration` with the `trackIncomingRequestsAsSessions` option set to `false`.
27+
28+
### Other Changes
29+
30+
- feat: Reword log message around unsent spans ([#14641](https://github.com/getsentry/sentry-javascript/pull/14641))
31+
- feat(opentelemetry): Set `response` context for http.server spans ([#14634](https://github.com/getsentry/sentry-javascript/pull/14634))
32+
- fix(google-cloud-serverless): Update homepage link in package.json ([#14411](https://github.com/getsentry/sentry-javascript/pull/14411))
33+
- fix(nuxt): Add unbuild config to not fail on warn ([#14662](https://github.com/getsentry/sentry-javascript/pull/14662))
34+
1335
Work in this release was contributed by @robinvw1. Thank you for your contribution!
1436

1537
## 8.43.0

biome.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
6-
"useIgnoreFile": true
6+
"useIgnoreFile": true,
7+
"defaultBranch": "develop"
78
},
89
"organizeImports": {
910
"enabled": true
@@ -17,13 +18,15 @@
1718
"noUnusedVariables": "error",
1819
"noPrecisionLoss": "error"
1920
},
21+
"complexity": {
22+
"useRegexLiterals": "error"
23+
},
2024
"suspicious": {
2125
"all": false,
2226
"noControlCharactersInRegex": "error"
2327
},
2428
"nursery": {
25-
"noUnusedImports": "error",
26-
"useRegexLiterals": "error"
29+
"noUnusedImports": "error"
2730
},
2831
"performance": {
2932
"all": true,
@@ -92,6 +95,10 @@
9295
"json": {
9396
"formatter": {
9497
"enabled": true
98+
},
99+
"parser": {
100+
"allowComments": true,
101+
"allowTrailingCommas": true
95102
}
96103
}
97104
}

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.43.0",
3+
"version": "8.44.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.30.0",
46-
"@sentry/browser": "8.43.0",
46+
"@sentry/browser": "8.44.0",
4747
"axios": "1.7.7",
4848
"babel-loader": "^8.2.2",
4949
"html-webpack-plugin": "^5.5.0",

dev-packages/browser-integration-tests/suites/integrations/captureConsole/test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
3030
extra: {
3131
arguments: ['console log'],
3232
},
33+
message: 'console log',
3334
}),
3435
);
3536
expect(logEvent?.exception).toBeUndefined();
@@ -40,6 +41,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
4041
extra: {
4142
arguments: ['console warn'],
4243
},
44+
message: 'console warn',
4345
}),
4446
);
4547
expect(warnEvent?.exception).toBeUndefined();
@@ -50,6 +52,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
5052
extra: {
5153
arguments: ['console info'],
5254
},
55+
message: 'console info',
5356
}),
5457
);
5558
expect(infoEvent?.exception).toBeUndefined();
@@ -60,6 +63,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
6063
extra: {
6164
arguments: ['console error'],
6265
},
66+
message: 'console error',
6367
}),
6468
);
6569
expect(errorEvent?.exception).toBeUndefined();
@@ -70,6 +74,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
7074
extra: {
7175
arguments: ['console trace'],
7276
},
77+
message: 'console trace',
7378
}),
7479
);
7580
expect(traceEvent?.exception).toBeUndefined();
@@ -90,6 +95,11 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
9095
}),
9196
);
9297
expect(errorWithErrorEvent?.exception?.values?.[0].value).toBe('console error with error object');
98+
expect(errorWithErrorEvent?.exception?.values?.[0].mechanism).toEqual({
99+
// TODO (v9): Adjust to true after changing the integration's default value
100+
handled: false,
101+
type: 'console',
102+
});
93103
expect(traceWithErrorEvent).toEqual(
94104
expect.objectContaining({
95105
level: 'log',

dev-packages/browser-integration-tests/suites/integrations/httpclient/axios/test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ sentryTest(
4040
type: 'http.client',
4141
handled: false,
4242
},
43+
stacktrace: {
44+
frames: expect.arrayContaining([
45+
expect.objectContaining({
46+
filename: 'http://sentry-test.io/subject.bundle.js',
47+
function: '?',
48+
in_app: true,
49+
}),
50+
]),
51+
},
4352
},
4453
],
4554
},

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/simple/test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ sentryTest(
4242
type: 'http.client',
4343
handled: false,
4444
},
45+
stacktrace: {
46+
frames: expect.arrayContaining([
47+
expect.objectContaining({
48+
filename: 'http://sentry-test.io/subject.bundle.js',
49+
function: '?',
50+
in_app: true,
51+
}),
52+
]),
53+
},
4554
},
4655
],
4756
},

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequest/test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ sentryTest('works with a Request passed in', async ({ getLocalTestUrl, page }) =
3838
type: 'http.client',
3939
handled: false,
4040
},
41+
stacktrace: {
42+
frames: expect.arrayContaining([
43+
expect.objectContaining({
44+
filename: 'http://sentry-test.io/subject.bundle.js',
45+
function: '?',
46+
in_app: true,
47+
}),
48+
]),
49+
},
4150
},
4251
],
4352
},

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequestAndBodyAndOptions/test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ sentryTest(
4040
type: 'http.client',
4141
handled: false,
4242
},
43+
stacktrace: {
44+
frames: expect.arrayContaining([
45+
expect.objectContaining({
46+
filename: 'http://sentry-test.io/subject.bundle.js',
47+
function: '?',
48+
in_app: true,
49+
}),
50+
]),
51+
},
4352
},
4453
],
4554
},

0 commit comments

Comments
 (0)