Skip to content

Commit 273fc06

Browse files
authored
Merge pull request #16008 from getsentry/prepare-release/9.12.0
meta(changelog): Update changelog for 9.12.0
2 parents 0403c48 + 9d4d6df commit 273fc06

File tree

74 files changed

+1699
-1007
lines changed

Some content is hidden

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

74 files changed

+1699
-1007
lines changed

.github/workflows/external-contributors.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
author_association: ${{ github.event.pull_request.author_association }}
3737

3838
- name: Create PR with changes
39-
uses: peter-evans/create-pull-request@dd2324fc52d5d43c699a5636bcf19fceaa70c284
39+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
4040
with:
4141
# This token is scoped to Daniel Griesser
4242
# If we used the default GITHUB_TOKEN, the resulting PR would not trigger CI :(

.size-limit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ module.exports = [
139139
path: 'packages/vue/build/esm/index.js',
140140
import: createImport('init', 'browserTracingIntegration'),
141141
gzip: true,
142-
limit: '39.5 KB',
142+
limit: '40 KB',
143143
},
144144
// Svelte SDK (ESM)
145145
{

CHANGELOG.md

+54-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,64 @@
1010

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

13+
## 9.12.0
14+
15+
### Important Changes
16+
17+
- **feat(feedback): Implement highlighting and hiding controls for screenshots ([#15951](https://github.com/getsentry/sentry-javascript/pull/15951))**
18+
19+
The Sentry SDK now supports highlighting and hiding controls for screenshots in [user feedback reports](https://docs.sentry.io/platforms/javascript/user-feedback/). This functionality is enabled by default.
20+
21+
- **feat(node): Add `ignoreIncomingRequestBody` callback to `httpIntegration` ([#15959](https://github.com/getsentry/sentry-javascript/pull/15959))**
22+
23+
The `httpIntegration` now supports an optional `ignoreIncomingRequestBody` callback that can be used to skip capturing the body of incoming requests.
24+
25+
```ts
26+
Sentry.init({
27+
integrations: [
28+
Sentry.httpIntegration({
29+
ignoreIncomingRequestBody: (url, request) => {
30+
return request.method === 'GET' && url.includes('/api/large-payload');
31+
},
32+
}),
33+
],
34+
});
35+
```
36+
37+
The `ignoreIncomingRequestBody` callback receives the URL of the request and should return `true` if the body should be ignored.
38+
39+
- **Logging Improvements**
40+
41+
Sentry is adding support for [structured logging](https://github.com/getsentry/sentry-javascript/discussions/15916). In this release we've made a variety of improvements to logging functionality in the Sentry SDKs.
42+
43+
- feat(node): Add server.address to nodejs logs ([#16006](https://github.com/getsentry/sentry-javascript/pull/16006))
44+
- feat(core): Add sdk name and version to logs ([#16005](https://github.com/getsentry/sentry-javascript/pull/16005))
45+
- feat(core): Add sentry origin attribute to console logs integration ([#15998](https://github.com/getsentry/sentry-javascript/pull/15998))
46+
- fix(core): Do not abbreviate message parameter attribute ([#15987](https://github.com/getsentry/sentry-javascript/pull/15987))
47+
- fix(core): Prefix release and environment correctly ([#15999](https://github.com/getsentry/sentry-javascript/pull/15999))
48+
- fix(node): Make log flushing logic more robust ([#15991](https://github.com/getsentry/sentry-javascript/pull/15991))
49+
50+
### Other Changes
51+
52+
- build(aws-serverless): Include debug logs in lambda layer SDK bundle ([#15974](https://github.com/getsentry/sentry-javascript/pull/15974))
53+
- feat(astro): Add tracking of errors during HTML streaming ([#15995](https://github.com/getsentry/sentry-javascript/pull/15995))
54+
- feat(browser): Add `onRequestSpanStart` hook to browser tracing integration ([#15979](https://github.com/getsentry/sentry-javascript/pull/15979))
55+
- feat(deps): Bump @sentry/cli from 2.42.3 to 2.43.0 ([#16001](https://github.com/getsentry/sentry-javascript/pull/16001))
56+
- feat(nextjs): Add `captureRouterTransitionStart` hook for capturing navigations ([#15981](https://github.com/getsentry/sentry-javascript/pull/15981))
57+
- feat(nextjs): Mark clientside prefetch request spans with `http.request.prefetch: true` attribute ([#15980](https://github.com/getsentry/sentry-javascript/pull/15980))
58+
- feat(nextjs): Un experimentify `clientInstrumentationHook` ([#15992](https://github.com/getsentry/sentry-javascript/pull/15992))
59+
- feat(nextjs): Warn when client was initialized more than once ([#15971](https://github.com/getsentry/sentry-javascript/pull/15971))
60+
- feat(node): Add support for `SENTRY_DEBUG` env variable ([#15972](https://github.com/getsentry/sentry-javascript/pull/15972))
61+
- fix(tss-react): Change `authToken` type to `string` ([#15985](https://github.com/getsentry/sentry-javascript/pull/15985))
62+
63+
Work in this release was contributed by @Page- and @Fryuni. Thank you for your contributions!
64+
1365
## 9.11.0
1466

1567
- feat(browser): Add `http.redirect_count` attribute to `browser.redirect` span ([#15943](https://github.com/getsentry/sentry-javascript/pull/15943))
1668
- feat(core): Add `consoleLoggingIntegration` for logs ([#15955](https://github.com/getsentry/sentry-javascript/pull/15955))
1769
- feat(core): Don't truncate error messages ([#15818](https://github.com/getsentry/sentry-javascript/pull/15818))
70+
- feat(core): Emit debug log when transport execution fails ([#16009](https://github.com/getsentry/sentry-javascript/pull/16009))
1871
- feat(nextjs): Add release injection in Turbopack ([#15958](https://github.com/getsentry/sentry-javascript/pull/15958))
1972
- feat(nextjs): Record `turbopack` as tag ([#15928](https://github.com/getsentry/sentry-javascript/pull/15928))
2073
- feat(nuxt): Base decision on source maps upload only on Nuxt source map settings ([#15859](https://github.com/getsentry/sentry-javascript/pull/15859))
@@ -117,7 +170,7 @@
117170

118171
- **feat(nextjs): Support `instrumentation-client.ts` ([#15705](https://github.com/getsentry/sentry-javascript/pull/15705))**
119172

120-
Next.js recently added a feature to support [client-side (browser) instrumentation via the `experimental.clientInstrumentationHook` flag and the `instrumentation-client.ts` file](https://nextjs.org/docs/app/api-reference/config/next-config-js/clientInstrumentationHook).
173+
Next.js recently added a feature to support [client-side (browser) instrumentation via a `instrumentation-client.ts` file](https://nextjs.org/docs/app/api-reference/file-conventions/instrumentation-client).
121174

122175
To be forwards compatible, the Sentry Next.js SDK will now pick up `instrumentation-client.ts` files even on older Next.js versions and add them to your client bundles.
123176
It is suggested that you either rename your `sentry.client.config.ts` file to `instrumentation-client.ts`, or if you already happen to have a `instrumentation-client.ts` file move the contents of `sentry.client.config.ts` to `instrumentation-client.ts`.

dev-packages/browser-integration-tests/suites/public-api/logger/integration/test.ts

+140-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,26 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
2323
{
2424
severityText: 'trace',
2525
body: { stringValue: 'console.trace 123 false' },
26-
attributes: [],
26+
attributes: [
27+
{
28+
key: 'sentry.origin',
29+
value: {
30+
stringValue: 'auto.console.logging',
31+
},
32+
},
33+
{
34+
key: 'sentry.sdk.name',
35+
value: {
36+
stringValue: 'sentry.javascript.browser',
37+
},
38+
},
39+
{
40+
key: 'sentry.sdk.version',
41+
value: {
42+
stringValue: expect.any(String),
43+
},
44+
},
45+
],
2746
timeUnixNano: expect.any(String),
2847
traceId: expect.any(String),
2948
severityNumber: 1,
@@ -37,7 +56,26 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
3756
{
3857
severityText: 'debug',
3958
body: { stringValue: 'console.debug 123 false' },
40-
attributes: [],
59+
attributes: [
60+
{
61+
key: 'sentry.origin',
62+
value: {
63+
stringValue: 'auto.console.logging',
64+
},
65+
},
66+
{
67+
key: 'sentry.sdk.name',
68+
value: {
69+
stringValue: 'sentry.javascript.browser',
70+
},
71+
},
72+
{
73+
key: 'sentry.sdk.version',
74+
value: {
75+
stringValue: expect.any(String),
76+
},
77+
},
78+
],
4179
timeUnixNano: expect.any(String),
4280
traceId: expect.any(String),
4381
severityNumber: 5,
@@ -51,7 +89,26 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
5189
{
5290
severityText: 'info',
5391
body: { stringValue: 'console.log 123 false' },
54-
attributes: [],
92+
attributes: [
93+
{
94+
key: 'sentry.origin',
95+
value: {
96+
stringValue: 'auto.console.logging',
97+
},
98+
},
99+
{
100+
key: 'sentry.sdk.name',
101+
value: {
102+
stringValue: 'sentry.javascript.browser',
103+
},
104+
},
105+
{
106+
key: 'sentry.sdk.version',
107+
value: {
108+
stringValue: expect.any(String),
109+
},
110+
},
111+
],
55112
timeUnixNano: expect.any(String),
56113
traceId: expect.any(String),
57114
severityNumber: 10,
@@ -65,7 +122,26 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
65122
{
66123
severityText: 'info',
67124
body: { stringValue: 'console.info 123 false' },
68-
attributes: [],
125+
attributes: [
126+
{
127+
key: 'sentry.origin',
128+
value: {
129+
stringValue: 'auto.console.logging',
130+
},
131+
},
132+
{
133+
key: 'sentry.sdk.name',
134+
value: {
135+
stringValue: 'sentry.javascript.browser',
136+
},
137+
},
138+
{
139+
key: 'sentry.sdk.version',
140+
value: {
141+
stringValue: expect.any(String),
142+
},
143+
},
144+
],
69145
timeUnixNano: expect.any(String),
70146
traceId: expect.any(String),
71147
severityNumber: 9,
@@ -79,7 +155,26 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
79155
{
80156
severityText: 'warn',
81157
body: { stringValue: 'console.warn 123 false' },
82-
attributes: [],
158+
attributes: [
159+
{
160+
key: 'sentry.origin',
161+
value: {
162+
stringValue: 'auto.console.logging',
163+
},
164+
},
165+
{
166+
key: 'sentry.sdk.name',
167+
value: {
168+
stringValue: 'sentry.javascript.browser',
169+
},
170+
},
171+
{
172+
key: 'sentry.sdk.version',
173+
value: {
174+
stringValue: expect.any(String),
175+
},
176+
},
177+
],
83178
timeUnixNano: expect.any(String),
84179
traceId: expect.any(String),
85180
severityNumber: 13,
@@ -93,7 +188,26 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
93188
{
94189
severityText: 'error',
95190
body: { stringValue: 'console.error 123 false' },
96-
attributes: [],
191+
attributes: [
192+
{
193+
key: 'sentry.origin',
194+
value: {
195+
stringValue: 'auto.console.logging',
196+
},
197+
},
198+
{
199+
key: 'sentry.sdk.name',
200+
value: {
201+
stringValue: 'sentry.javascript.browser',
202+
},
203+
},
204+
{
205+
key: 'sentry.sdk.version',
206+
value: {
207+
stringValue: expect.any(String),
208+
},
209+
},
210+
],
97211
timeUnixNano: expect.any(String),
98212
traceId: expect.any(String),
99213
severityNumber: 17,
@@ -107,7 +221,26 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
107221
{
108222
severityText: 'error',
109223
body: { stringValue: 'Assertion failed: console.assert 123 false' },
110-
attributes: [],
224+
attributes: [
225+
{
226+
key: 'sentry.origin',
227+
value: {
228+
stringValue: 'auto.console.logging',
229+
},
230+
},
231+
{
232+
key: 'sentry.sdk.name',
233+
value: {
234+
stringValue: 'sentry.javascript.browser',
235+
},
236+
},
237+
{
238+
key: 'sentry.sdk.version',
239+
value: {
240+
stringValue: expect.any(String),
241+
},
242+
},
243+
],
111244
timeUnixNano: expect.any(String),
112245
traceId: expect.any(String),
113246
severityNumber: 17,

0 commit comments

Comments
 (0)