|
4 | 4 |
|
5 | 5 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott |
6 | 6 |
|
7 | | -- **feat(tanstackstart-react): Trace server functions ([#18500](https://github.com/getsentry/sentry-javascript/pull/18500))** |
8 | | - |
9 | | - To enable tracing for server-side requests, you can now explicitly define a [server entry point](https://tanstack.com/start/latest/docs/framework/react/guide/server-entry-point) in your application and wrap your request handler with `wrapFetchWithSentry`. |
10 | | - |
11 | | - ```typescript |
12 | | - // src/server.ts |
13 | | - import { wrapFetchWithSentry } from '@sentry/tanstackstart-react'; |
14 | | - import handler, { createServerEntry } from '@tanstack/react-start/server-entry'; |
| 7 | +## 10.32.0 |
15 | 8 |
|
16 | | - export default createServerEntry( |
17 | | - wrapFetchWithSentry({ |
18 | | - fetch(request: Request) { |
19 | | - return handler.fetch(request); |
20 | | - }, |
21 | | - }), |
22 | | - ); |
23 | | - ``` |
| 9 | +### Important Changes |
24 | 10 |
|
25 | | -- **feat(core): Apply scope attributes to logs** ([18184](https://github.com/getsentry/sentry-javascript/pull/18184)) |
| 11 | +- **feat(core): Apply scope attributes to logs ([#18184](https://github.com/getsentry/sentry-javascript/pull/18184))** |
26 | 12 |
|
27 | 13 | You can now set attributes on the SDK's scopes which will be applied to all logs as long as the respective scopes are active. For the time being, only `string`, `number` and `boolean` attribute values are supported. |
28 | 14 |
|
|
41 | 27 | Sentry.logger.warn('stale website version, reloading page'); |
42 | 28 | ``` |
43 | 29 |
|
44 | | -- **feat(vue): Add TanStack Router integration ([#18359](https://github.com/getsentry/sentry-javascript/pull/18359))** |
| 30 | +- **feat(replay): Add Request body with `attachRawBodyFromRequest` option ([#18501](https://github.com/getsentry/sentry-javascript/pull/18501))** |
| 31 | + |
| 32 | + To attach the raw request body (from `Request` objects passed as the first `fetch` argument) to replay events, you can now use the `attachRawBodyFromRequest` option in the Replay integration: |
| 33 | + |
| 34 | + ```js |
| 35 | + Sentry.init({ |
| 36 | + integrations: [ |
| 37 | + Sentry.replayIntegration({ |
| 38 | + attachRawBodyFromRequest: true, |
| 39 | + }), |
| 40 | + ], |
| 41 | + }); |
| 42 | + ``` |
| 43 | + |
| 44 | +- **feat(tanstackstart-react): Trace server functions ([#18500](https://github.com/getsentry/sentry-javascript/pull/18500))** |
| 45 | + |
| 46 | + To enable tracing for server-side requests, you can now explicitly define a [server entry point](https://tanstack.com/start/latest/docs/framework/react/guide/server-entry-point) in your application and wrap your request handler with `wrapFetchWithSentry`. |
| 47 | + |
| 48 | + ```typescript |
| 49 | + // src/server.ts |
| 50 | + import { wrapFetchWithSentry } from '@sentry/tanstackstart-react'; |
| 51 | + import handler, { createServerEntry } from '@tanstack/react-start/server-entry'; |
| 52 | + |
| 53 | + export default createServerEntry( |
| 54 | + wrapFetchWithSentry({ |
| 55 | + fetch(request: Request) { |
| 56 | + return handler.fetch(request); |
| 57 | + }, |
| 58 | + }), |
| 59 | + ); |
| 60 | + ``` |
| 61 | + |
| 62 | +- **feat(vue): Add TanStack Router integration ([#18547](https://github.com/getsentry/sentry-javascript/pull/18547))** |
45 | 63 |
|
46 | 64 | The `@sentry/vue` package now includes support for TanStack Router. Use `tanstackRouterBrowserTracingIntegration` to automatically instrument pageload and navigation transactions with parameterized routes: |
47 | 65 |
|
|
63 | 81 | }); |
64 | 82 | ``` |
65 | 83 |
|
66 | | -- **feat(nextjs): Add tree-shaking configuration to `webpack` build config ([#18359](https://github.com/getsentry/sentry-javascript/pull/18359))** |
| 84 | +### Other Changes |
67 | 85 |
|
68 | | -- **feat(replay): Add Request body with `attachRawBodyFromRequest` option ([#18501](https://github.com/getsentry/sentry-javascript/pull/18501))** |
| 86 | +- feat(core): Capture initialize attributes on MCP servers ([#18531](https://github.com/getsentry/sentry-javascript/pull/18531)) |
| 87 | +- feat(nextjs): Extract tracing logic from server component wrapper templates ([#18408](https://github.com/getsentry/sentry-javascript/pull/18408)) |
| 88 | +- feat(nextjs): added webpack treeshaking flags as config ([#18359](https://github.com/getsentry/sentry-javascript/pull/18359)) |
| 89 | +- fix(solid/tanstackrouter): Ensure web vitals are sent on pageload ([#18542](https://github.com/getsentry/sentry-javascript/pull/18542)) |
69 | 90 |
|
70 | | - To attach the raw request body (from `Request` objects passed as the first `fetch` argument) to replay events, |
71 | | - you can now use the `attachRawBodyFromRequest` option in the Replay integration: |
| 91 | +<details> |
| 92 | + <summary> <strong>Internal Changes</strong> </summary> |
72 | 93 |
|
73 | | - ```js |
74 | | - Sentry.init({ |
75 | | - integrations: [ |
76 | | - Sentry.replayIntegration({ |
77 | | - attachRawBodyFromRequest: true, |
78 | | - }), |
79 | | - ], |
80 | | - }); |
81 | | - ``` |
| 94 | +- chore(changelog): Add entry for scope attributes ([#18555](https://github.com/getsentry/sentry-javascript/pull/18555)) |
| 95 | +- chore(changelog): Add entry for tanstack start wrapFetchWithSentry ([#18558](https://github.com/getsentry/sentry-javascript/pull/18558)) |
| 96 | +- chore(deps): bump @trpc/server from 10.45.2 to 10.45.3 in /dev-packages/e2e-tests/test-applications/node-express-incorrect-instrumentation ([#18530](https://github.com/getsentry/sentry-javascript/pull/18530)) |
| 97 | +- chore(deps): bump @trpc/server from 10.45.2 to 10.45.3 in /dev-packages/e2e-tests/test-applications/node-express-v5 ([#18550](https://github.com/getsentry/sentry-javascript/pull/18550)) |
| 98 | +- chore(e2e): Pin to react-router 7.10.1 in spa e2e test ([#18548](https://github.com/getsentry/sentry-javascript/pull/18548)) |
| 99 | +- chore(e2e): Remove check on `http.response_content_length_uncompressed` ([#18536](https://github.com/getsentry/sentry-javascript/pull/18536)) |
| 100 | +- chore(github): Add "Closes" to PR template ([#18538](https://github.com/getsentry/sentry-javascript/pull/18538)) |
| 101 | +- test(cloudflare-mcp): Unpin mcp sdk ([#18528](https://github.com/getsentry/sentry-javascript/pull/18528)) |
| 102 | +- test(nextjs): Add e2e tests for server component spans in next 16 ([#18544](https://github.com/getsentry/sentry-javascript/pull/18544)) |
| 103 | + |
| 104 | +</details> |
82 | 105 |
|
83 | 106 | ## 10.31.0 |
84 | 107 |
|
|
0 commit comments