Skip to content

Commit 452cef5

Browse files
authored
Merge pull request #7856 from getsentry/prepare-release/7.48.0
meta(changelog): Update changelog for 7.48.0 (again)
2 parents 577fbf4 + 2a20039 commit 452cef5

File tree

57 files changed

+2922
-1403
lines changed

Some content is hidden

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

57 files changed

+2922
-1403
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ body:
2525
- type: dropdown
2626
id: package
2727
attributes:
28-
label:
29-
Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g.
30-
`bundle.tracing.min.js`) in your SDK setup.
28+
label: Which SDK are you using?
29+
description:
30+
If you're using the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK
31+
setup.
3132
options:
32-
- '@sentry/angular'
3333
- '@sentry/browser'
34+
- '@sentry/angular'
3435
- '@sentry/ember'
3536
- '@sentry/gatsby'
3637
- '@sentry/nextjs'
@@ -43,8 +44,8 @@ body:
4344
- '@sentry/sveltekit'
4445
- '@sentry/vue'
4546
- '@sentry/wasm'
46-
- Sentry Browser CDN bundle
4747
- Sentry Browser Loader
48+
- Sentry Browser CDN bundle
4849
validations:
4950
required: true
5051
- type: input
@@ -61,15 +62,15 @@ body:
6162
label: Framework Version
6263
description:
6364
If you're using one of our framework-specific SDKs (`@sentry/react`, for example), what version of the
64-
_framework_ (not SDK) are you using?
65+
_framework_ are you using?
6566
placeholder: ex. React 17.0.0
6667
- type: input
6768
id: link-to-sentry
6869
attributes:
6970
label: Link to Sentry event
7071
description:
71-
If applicable, provide a link to the affected event from your Sentry account. The event will only be viewable by
72-
Sentry staff.
72+
If applicable, please provide a link to the affected event from your Sentry account. The event will only be
73+
viewable by Sentry staff.
7374
placeholder: https://sentry.io/organizations/<org-slug>/issues/<issue-id>/events/<event-id>/?project=<project-id>
7475
- type: textarea
7576
id: sdk-setup

CHANGELOG.md

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
### Important Changes
1010

11-
1211
- **feat(node): Add `AsyncLocalStorage` implementation of `AsyncContextStrategy` (#7800)**
1312
- feat(core): Extend `AsyncContextStrategy` to allow reuse of existing context (#7778)
1413
- feat(core): Make `runWithAsyncContext` public API (#7817)
@@ -22,25 +21,26 @@ This release switches the SDK to use [`AsyncLocalStorage`](https://nodejs.org/ap
2221
If you want to manually add async context isolation to your application, you can use the new `runWithAsyncContext` API.
2322

2423
```js
24+
import * as Sentry from '@sentry/node';
25+
2526
const requestHandler = (ctx, next) => {
2627
return new Promise((resolve, reject) => {
27-
Sentry.runWithAsyncContext(
28-
async hub => {
29-
hub.configureScope(scope =>
30-
scope.addEventProcessor(event =>
31-
Sentry.addRequestDataToEvent(event, ctx.request, {
32-
include: {
33-
user: false,
34-
},
35-
})
36-
)
37-
);
38-
39-
await next();
40-
resolve();
41-
},
42-
{ emitters: [ctx] }
43-
);
28+
Sentry.runWithAsyncContext(async () => {
29+
const hub = Sentry.geCurrentHub();
30+
31+
hub.configureScope(scope =>
32+
scope.addEventProcessor(event =>
33+
Sentry.addRequestDataToEvent(event, ctx.request, {
34+
include: {
35+
user: false,
36+
},
37+
})
38+
)
39+
);
40+
41+
await next();
42+
resolve();
43+
});
4444
});
4545
};
4646
```
@@ -77,11 +77,16 @@ This release adds automatic upload of source maps to the SvelteKit SDK. No need
7777

7878
Please make sure to follow the [`README`](https://github.com/getsentry/sentry-javascript/blob/develop/packages/sveltekit/README.md#uploading-source-maps) to specify your Sentry auth token, as well as org and project slugs.
7979

80+
**- feat(replay): Capture request & response headers (#7816)**
81+
82+
Replay now captures the `content-length`, `content-type`, and `accept` headers from requests and responses automatically.
83+
8084
### Additional Features and Fixes
8185

8286
- feat(browser): Export request instrumentation options (#7818)
8387
- feat(core): Add async context abstraction (#7753)
8488
- feat(core): Add DSC to all outgoing envelopes (#7820)
89+
- feat(core): Cache processed stacks for debug IDs (#7825)
8590
- feat(node): Add checkin envelope types (#7777)
8691
- feat(replay): Add `getReplayId()` method (#7822)
8792
- fix(browser): Adjust `BrowserTransportOptions` to support offline transport options (#7775)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ sentryTest(
4747
url: 'http://localhost:7654/foo',
4848
method: 'GET',
4949
headers: {
50-
Accept: 'application/json',
51-
Cache: 'no-cache',
50+
accept: 'application/json',
51+
cache: 'no-cache',
5252
},
5353
},
5454
contexts: {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ sentryTest(
4747
url: 'http://localhost:7654/foo',
4848
method: 'GET',
4949
headers: {
50-
Accept: 'application/json',
51-
Cache: 'no-cache',
52-
'Content-Type': 'application/json',
50+
accept: 'application/json',
51+
cache: 'no-cache',
52+
'content-type': 'application/json',
5353
},
5454
},
5555
contexts: {

packages/browser-integration-tests/suites/replay/extendNetworkBreadcrumbs/fetch/captureBodies/test.ts

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

packages/browser-integration-tests/suites/replay/extendNetworkBreadcrumbs/fetch/captureBodiesJSON/test.ts

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

0 commit comments

Comments
 (0)