Skip to content

Commit e861b4f

Browse files
authored
Merge pull request #18133 from getsentry/prepare-release/10.24.0
meta(changelog): Update changelog for 10.24.0
2 parents 428186c + 0054094 commit e861b4f

File tree

168 files changed

+1036
-725
lines changed

Some content is hidden

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

168 files changed

+1036
-725
lines changed

.size-limit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,14 @@ module.exports = [
190190
path: createCDNPath('bundle.tracing.min.js'),
191191
gzip: false,
192192
brotli: false,
193-
limit: '124.1 KB',
193+
limit: '125 KB',
194194
},
195195
{
196196
name: 'CDN Bundle (incl. Tracing, Replay) - uncompressed',
197197
path: createCDNPath('bundle.tracing.replay.min.js'),
198198
gzip: false,
199199
brotli: false,
200-
limit: '240 KB',
200+
limit: '245 KB',
201201
},
202202
{
203203
name: 'CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed',

CHANGELOG.md

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

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

7+
## 10.24.0
8+
9+
### Important Changes
10+
11+
- **feat(metrics): Add top level option `enableMetrics` and `beforeSendMetric` ([#18088](https://github.com/getsentry/sentry-javascript/pull/18088))**
12+
13+
This PR moves `enableMetrics` and `beforeSendMetric` out of the `_experiments` options.
14+
The metrics feature will now be **enabled by default** (none of our integrations will auto-emit metrics as of now), but you can disable sending metrics via `enableMetrics: false`.
15+
Metric options within `_experiments` got deprecated but will still work as of now, they will be removed with the next major version of our SDKs.
16+
17+
### Other Changes
18+
19+
- feat(aws): Add `SENTRY_LAYER_EXTENSION` to configure using the lambda layer extension via env variables ([#18101](https://github.com/getsentry/sentry-javascript/pull/18101))
20+
- feat(core): Include all exception object keys instead of truncating ([#18044](https://github.com/getsentry/sentry-javascript/pull/18044))
21+
- feat(metrics)!: Update types ([#17907](https://github.com/getsentry/sentry-javascript/pull/17907))
22+
- feat(replay): ignore `background-image` when `blockAllMedia` is enabled ([#18019](https://github.com/getsentry/sentry-javascript/pull/18019))
23+
- fix(nextjs): Delete css map files ([#18131](https://github.com/getsentry/sentry-javascript/pull/18131))
24+
- fix(nextjs): Stop accessing sync props in template ([#18113](https://github.com/getsentry/sentry-javascript/pull/18113))
25+
26+
<details>
27+
<summary> <strong>Internal Changes</strong> </summary>
28+
29+
- chore: X handle update ([#18117](https://github.com/getsentry/sentry-javascript/pull/18117))
30+
- chore(eslint): Add eslint-plugin-regexp rule (dev-packages) ([#18063](https://github.com/getsentry/sentry-javascript/pull/18063))
31+
- test(next): fix flakey tests ([#18100](https://github.com/getsentry/sentry-javascript/pull/18100))
32+
- test(node-core): Proof that withMonitor doesn't create a new trace ([#18057](https://github.com/getsentry/sentry-javascript/pull/18057))
33+
</details>
34+
735
## 10.23.0
836

937
- feat(core): Send `user-agent` header with envelope requests in server SDKs ([#17929](https://github.com/getsentry/sentry-javascript/pull/17929))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ convenient interface and improved consistency between various JavaScript environ
2828
- [![Forum](https://img.shields.io/badge/forum-sentry-green.svg)](https://forum.sentry.io/c/sdks)
2929
- [![Discord](https://img.shields.io/discord/621778831602221064)](https://discord.gg/Ww9hbqr)
3030
- [![Stack Overflow](https://img.shields.io/badge/stack%20overflow-sentry-green.svg)](http://stackoverflow.com/questions/tagged/sentry)
31-
- [![Twitter Follow](https://img.shields.io/twitter/follow/getsentry?label=getsentry&style=social)](https://twitter.com/intent/follow?screen_name=getsentry)
31+
- [![X Follow](https://img.shields.io/twitter/follow/sentry?label=sentry&style=social)](https://x.com/intent/follow?screen_name=sentry)
3232

3333
## Contents
3434

dev-packages/browser-integration-tests/.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ module.exports = {
33
browser: true,
44
node: true,
55
},
6-
extends: ['../../.eslintrc.js'],
6+
// todo: remove regexp plugin from here once we add it to base.js eslint config for the whole project
7+
extends: ['../../.eslintrc.js', 'plugin:regexp/recommended'],
8+
plugins: ['regexp'],
79
ignorePatterns: [
810
'suites/**/subject.js',
911
'suites/**/dist/*',

dev-packages/browser-integration-tests/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"devDependencies": {
5555
"@types/glob": "8.0.0",
5656
"@types/node": "^18.19.1",
57+
"eslint-plugin-regexp": "^1.15.0",
5758
"glob": "8.0.3"
5859
},
5960
"volta": {

dev-packages/browser-integration-tests/suites/manual-client/browser-context/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ sentryTest('allows to setup a client manually & capture exceptions', async ({ ge
4646
},
4747
},
4848
contexts: {
49-
trace: { trace_id: expect.stringMatching(/[a-f0-9]{32}/), span_id: expect.stringMatching(/[a-f0-9]{16}/) },
49+
trace: { trace_id: expect.stringMatching(/[a-f\d]{32}/), span_id: expect.stringMatching(/[a-f\d]{16}/) },
5050
},
5151
});
5252
});

dev-packages/browser-integration-tests/suites/profiling/traceLifecycleMode_multiple-chunks/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ sentryTest(
5858

5959
// Required profile metadata (Sample Format V2)
6060
expect(typeof envelopeItemPayload1.profiler_id).toBe('string');
61-
expect(envelopeItemPayload1.profiler_id).toMatch(/^[a-f0-9]{32}$/);
61+
expect(envelopeItemPayload1.profiler_id).toMatch(/^[a-f\d]{32}$/);
6262
expect(typeof envelopeItemPayload1.chunk_id).toBe('string');
63-
expect(envelopeItemPayload1.chunk_id).toMatch(/^[a-f0-9]{32}$/);
63+
expect(envelopeItemPayload1.chunk_id).toMatch(/^[a-f\d]{32}$/);
6464
expect(envelopeItemPayload1.client_sdk).toBeDefined();
6565
expect(typeof envelopeItemPayload1.client_sdk.name).toBe('string');
6666
expect(typeof envelopeItemPayload1.client_sdk.version).toBe('string');
@@ -170,9 +170,9 @@ sentryTest(
170170
// Required profile metadata (Sample Format V2)
171171
// https://develop.sentry.dev/sdk/telemetry/profiles/sample-format-v2/
172172
expect(typeof envelopeItemPayload2.profiler_id).toBe('string');
173-
expect(envelopeItemPayload2.profiler_id).toMatch(/^[a-f0-9]{32}$/);
173+
expect(envelopeItemPayload2.profiler_id).toMatch(/^[a-f\d]{32}$/);
174174
expect(typeof envelopeItemPayload2.chunk_id).toBe('string');
175-
expect(envelopeItemPayload2.chunk_id).toMatch(/^[a-f0-9]{32}$/);
175+
expect(envelopeItemPayload2.chunk_id).toMatch(/^[a-f\d]{32}$/);
176176
expect(envelopeItemPayload2.client_sdk).toBeDefined();
177177
expect(typeof envelopeItemPayload2.client_sdk.name).toBe('string');
178178
expect(typeof envelopeItemPayload2.client_sdk.version).toBe('string');

dev-packages/browser-integration-tests/suites/profiling/traceLifecycleMode_overlapping-spans/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ sentryTest(
6060
// Required profile metadata (Sample Format V2)
6161
// https://develop.sentry.dev/sdk/telemetry/profiles/sample-format-v2/
6262
expect(typeof envelopeItemPayload.profiler_id).toBe('string');
63-
expect(envelopeItemPayload.profiler_id).toMatch(/^[a-f0-9]{32}$/);
63+
expect(envelopeItemPayload.profiler_id).toMatch(/^[a-f\d]{32}$/);
6464
expect(typeof envelopeItemPayload.chunk_id).toBe('string');
65-
expect(envelopeItemPayload.chunk_id).toMatch(/^[a-f0-9]{32}$/);
65+
expect(envelopeItemPayload.chunk_id).toMatch(/^[a-f\d]{32}$/);
6666
expect(envelopeItemPayload.client_sdk).toBeDefined();
6767
expect(typeof envelopeItemPayload.client_sdk.name).toBe('string');
6868
expect(typeof envelopeItemPayload.client_sdk.version).toBe('string');
@@ -175,7 +175,7 @@ sentryTest('attaches thread data to child spans (trace mode)', async ({ page, ge
175175
const profilerId = rootSpan?.contexts?.profile?.profiler_id as string | undefined;
176176
expect(typeof profilerId).toBe('string');
177177

178-
expect(profilerId).toMatch(/^[a-f0-9]{32}$/);
178+
expect(profilerId).toMatch(/^[a-f\d]{32}$/);
179179

180180
const spans = (rootSpan?.spans ?? []) as Array<{ data?: Record<string, unknown> }>;
181181
expect(spans.length).toBeGreaterThan(0);

dev-packages/browser-integration-tests/suites/public-api/metrics/init.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ window.Sentry = Sentry;
44

55
Sentry.init({
66
dsn: 'https://public@dsn.ingest.sentry.io/1337',
7-
_experiments: {
8-
enableMetrics: true,
9-
},
107
release: '1.0.0',
118
environment: 'test',
129
integrations: integrations => {

dev-packages/browser-integration-tests/suites/public-api/startSpan/standalone-mixed-transaction/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ sentryTest(
3434
const traceId = transactionEnvelopeHeader.trace!.trace_id!;
3535
const parentSpanId = transactionEnvelopeItem.contexts?.trace?.span_id;
3636

37-
expect(traceId).toMatch(/[a-f0-9]{32}/);
38-
expect(parentSpanId).toMatch(/[a-f0-9]{16}/);
37+
expect(traceId).toMatch(/[a-f\d]{32}/);
38+
expect(parentSpanId).toMatch(/[a-f\d]{16}/);
3939

4040
expect(spanEnvelopeHeader).toEqual({
4141
sent_at: expect.any(String),
@@ -76,7 +76,7 @@ sentryTest(
7676
segment_id: transactionEnvelopeItem.contexts?.trace?.span_id,
7777
parent_span_id: parentSpanId,
7878
origin: 'manual',
79-
span_id: expect.stringMatching(/[a-f0-9]{16}/),
79+
span_id: expect.stringMatching(/[a-f\d]{16}/),
8080
start_timestamp: expect.any(Number),
8181
timestamp: expect.any(Number),
8282
trace_id: traceId,
@@ -111,7 +111,7 @@ sentryTest(
111111
description: 'inner',
112112
origin: 'manual',
113113
parent_span_id: parentSpanId,
114-
span_id: expect.stringMatching(/[a-f0-9]{16}/),
114+
span_id: expect.stringMatching(/[a-f\d]{16}/),
115115
start_timestamp: expect.any(Number),
116116
timestamp: expect.any(Number),
117117
trace_id: traceId,

0 commit comments

Comments
 (0)