|
4 | 4 |
|
5 | 5 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
|
6 | 6 |
|
| 7 | +## 7.91.0 |
| 8 | + |
| 9 | +### Important Changes |
| 10 | + |
| 11 | +- **feat: Add server runtime metrics aggregator (#9894)** |
| 12 | + |
| 13 | +The release adds alpha support for [Sentry developer metrics](https://github.com/getsentry/sentry/discussions/58584) in the server runtime SDKs (`@sentry/node`, `@sentry/deno`, `@sentry/nextjs` server-side, etc.). 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` experiment to your `Sentry.init` call. |
| 16 | + |
| 17 | +```js |
| 18 | +Sentry.init({ |
| 19 | + dsn: '__DSN__', |
| 20 | + _experiments: { |
| 21 | + metricsAggregator: true, |
| 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 `type: "a"` |
| 33 | +Sentry.metrics.gauge('parallel_requests', 2, { tags: { type: 'a' } }); |
| 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 | +- **feat(node): Rework ANR to use worker script via an integration (#9945)** |
| 43 | + |
| 44 | +The [ANR tracking integration for Node](https://docs.sentry.io/platforms/node/configuration/application-not-responding/) has been reworked to use an integration. ANR tracking now requires a minimum Node version of 16 or higher. Previously you had to call `Sentry.enableANRDetection` before running your application, now you can simply add the `Anr` integration to your `Sentry.init` call. |
| 45 | + |
| 46 | +```js |
| 47 | +import * as Sentry from '@sentry/node'; |
| 48 | + |
| 49 | +Sentry.init({ |
| 50 | + dsn : 'https://[email protected]/1337', |
| 51 | + integrations: [new Sentry.Integrations.Anr({ captureStackTrace: true, anrThreshold: 200 })], |
| 52 | +}); |
| 53 | +``` |
| 54 | + |
| 55 | +### Other Changes |
| 56 | + |
| 57 | +- feat(breadcrumbs): Send component names on UI breadcrumbs (#9946) |
| 58 | +- feat(core): Add `getGlobalScope()` method (#9920) |
| 59 | +- feat(core): Add `getIsolationScope()` method (#9957) |
| 60 | +- feat(core): Add `span.end()` to replace `span.finish()` (#9954) |
| 61 | +- feat(core): Ensure `startSpan` & `startSpanManual` fork scope (#9955) |
| 62 | +- feat(react): Send component name on spans (#9949) |
| 63 | +- feat(replay): Send component names in replay breadcrumbs (#9947) |
| 64 | +- feat(tracing): Send component name on interaction spans (#9948) |
| 65 | +- feat(utils): Add function to extract relevant component name (#9921) |
| 66 | + |
7 | 67 | ## 7.90.0
|
8 | 68 |
|
9 | 69 | - feat(replay): Change to use preset quality values (#9903)
|
|
0 commit comments