Skip to content

Commit 787a29b

Browse files
Lms24mydea
andcommitted
meta: Add Changelog entry for 8.6.0
Update CHANGELOG.md Co-authored-by: Francesco Novy <[email protected]>
1 parent 82f4432 commit 787a29b

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

CHANGELOG.md

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

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

7+
## 8.6.0
8+
9+
### Important Changes
10+
11+
- **feat(metrics): Add `timings` method to metrics (#12226)**
12+
13+
This introduces a new method, `metrics.timing()`, which can be used in two ways:
14+
15+
1. With a numeric value, to simplify creating a distribution metric. This will default to `second` as unit:
16+
17+
```js
18+
Sentry.metrics.timing('myMetric', 100);
19+
```
20+
21+
2. With a callback, which will wrap the duration of the callback. This can accept a sync or async callback. It will
22+
create an inactive span around the callback and at the end emit a metric with the duration of the span in seconds:
23+
24+
```js
25+
const returnValue = Sentry.metrics.timing('myMetric', measureThisFunction);
26+
```
27+
28+
- **feat(react): Add `Sentry.reactErrorHandler` (#12147)**
29+
30+
This PR introduces `Sentry.reactErrorHandler`, which you can use in React 19 as follows:
31+
32+
```js
33+
import * as Sentry from '@sentry/react';
34+
import { hydrateRoot } from 'react-dom/client';
35+
36+
ReactDOM.hydrateRoot(
37+
document.getElementById('root'),
38+
<React.StrictMode>
39+
<App />
40+
</React.StrictMode>,
41+
{
42+
onUncaughtError: Sentry.reactErrorHandler(),
43+
onCaughtError: Sentry.reactErrorHandler((error, errorInfo) => {
44+
// optional callback if users want custom config.
45+
}),
46+
},
47+
);
48+
```
49+
50+
For more details, take a look at [the PR](https://github.com/getsentry/sentry-javascript/pull/12147). Our
51+
documentation will be updated soon!
52+
53+
### Other Changes
54+
55+
- feat(sveltekit): Add request data to server-side events (#12254)
56+
- fix(core): Pass in cron monitor config correctly (#12248)
57+
- fix(nextjs): Don't capture suspense errors in server components (#12261)
58+
- fix(tracing): Ensure sent spans are limited to 1000 (#12252)
59+
- ref(core): Use versioned carrier on global object (#12206)
60+
761
## 8.5.0
862

963
### Important Changes

0 commit comments

Comments
 (0)