8000 meta(changelog): Update changelog for 7.88.0 · adam187/sentry-javascript@8b6af6f · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b6af6f

Browse files
committed
meta(changelog): Update changelog for 7.88.0
1 parent d3bf75d commit 8b6af6f

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

CHANGELOG.md

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

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

7+
## 7.88.0
8+
9+
### Important Changes
10+
11+
- **feat(browser): Add browser metrics sdk (#9794)**
12+
13+
The release adds alpha support for [Sentry developer metrics](https://github.com/getsentry/sentry/discussions/58584) in the Browser SDKs (`@sentry/browser` and related framework SDKs). Via the newly introduced APIs, you can now flush metrics directly to Sentry.
14+
15+
To enable capturing metrics, you first need to add the `MetricsAggregator` integration.
16+
17+
```js
18+
Sentry.init({
19+
dsn: '__DSN__',
20+
integrations: [
21+
new Sentry.metrics.MetricsAggregator(),
22+
],
23+
});
24+
```
25+
26+
Then you'll be able to add `counters`, `sets`, `distributions`, and `gauges` under the `Sentry.metrics` namespace.
27+
28+
```js
29+
// Add 4 to a counter named `hits`
30+
Sentry.metrics.increment('hits', 4);
31+
32+
// Add 2 to gauge named `parallel_requests`, tagged with `happy: "no"`
33+
Sentry.metrics.gauge('parallel_requests', 2, { tags: { happy: 'no' } });
34+
35+
// Add 4.6 to a distribution named `response_time` with unit seconds
36+
Sentry.metrics.distribution('response_time', 4.6, { unit: 'seconds' });
37+
38+
// Add 2 to a set named `valuable.ids`
39+
Sentry.metrics.set('valuable.ids', 2);
40+
```
41+
42+
In a future release we'll add support for server runtimes (Node, Deno, Bun, Vercel Edge, etc.)
43+
44+
- **feat(deno): Optionally instrument `Deno.cron` (#9808)**
45+
46+
This releases add support for instrumenting [Deno cron's](https://deno.com/blog/cron) with [Sentry cron monitors](https://docs.sentry.io/product/crons/). This requires v1.38 of Deno run with the `--unstable` flag and the usage of the `DenoCron` Sentry integration.
47+
48+
```ts
49+
// Import from the Deno registry
50+
import * as Sentry from "https://deno.land/x/sentry/index.mjs";
51+
52+
Sentry.init({
53+
dsn: '__DSN__',
54+
integrations: [
55+
new Sentry.DenoCron(),
56+
],
57+
});
58+
```
59+
60+
### Other Changes
61+
62+
- feat(replay): Bump `rrweb` to 2.6.0 (#9847)
63+
- fix(nextjs): Guard against injecting multiple times (#9807)
64+
- ref(remix): Bump Sentry CLI to ^2.23.0 (#9773)
65+
766
## 7.87.0
867

968
- feat: Add top level `getCurrentScope()` method (#9800)

0 commit comments

Comments
 (0)
0