Skip to content

Commit 7303fd1

Browse files
committed
meta(changelog): Update changelog for 7.51.1
1 parent be129db commit 7303fd1

File tree

1 file changed

+41
-12
lines changed

1 file changed

+41
-12
lines changed

CHANGELOG.md

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44

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

7+
## 7.51.1
8+
9+
- feat(replay): Add event to capture options on checkouts (#8011)
10+
- feat(replay): Improve click target detection (#8026)
11+
- fix(node): Make sure we use same ID for checkIns (#8050)
12+
- fix(replay: Keep session active on key press (#8037)
13+
- fix(replay): Move error sampling to before send (#8057)
14+
- fix(sveltekit): Wrap `load` when typed explicitly (#8049)
15+
16+
**Replay `rrweb` changes:**
17+
18+
`@sentry-internal/rrweb` was updated from 1.106.0 to 1.108.0:
19+
20+
- fix: Fix some input masking (esp for radio buttons) ([#85](https://github.com/getsentry/rrweb/pull/85))
21+
- fix: Unescaped `:` in CSS rule from Safari ([#86](https://github.com/getsentry/rrweb/pull/86))
22+
- feat: Define custom elements (web components) ([#87](https://github.com/getsentry/rrweb/pull/87))
23+
24+
Work in this release contributed by @sreetamdas. Thank you for your contribution!
25+
726
## 7.51.0
827

928
### Important Changes
@@ -26,30 +45,40 @@ Note that `@sentry/angular` _does not_ support Angular 16.
2645

2746
- **feat(node): Add ability to send cron monitor check ins (#8039)**
2847

48+
**Note: This release contains a bug with generating cron monitors. We recommend you upgrade the JS SDK to 7.51.1 or above to use cron monitoring functionality**
49+
2950
This release adds [Sentry cron monitoring](https://docs.sentry.io/product/crons/) support to the Node SDK.
3051

31-
To monitor your cron jobs, send check-ins everytime you execute your cron jobs to Sentry. You can do this with the `captureCheckIn` method exported from the SDK. First you must send an `in_progress`, checkin, then you can send one with status `ok` or `error` based on what happened with your cron job.
52+
Check-in monitoring allows you to track a job's progress by completing two check-ins: one at the start of your job and another at the end of your job. This two-step process allows Sentry to notify you if your job didn't start when expected (missed) or if it exceeded its maximum runtime (failed).
3253

3354
```ts
3455
const Sentry = require('@sentry/node');
3556

36-
// ...
37-
38-
Sentry.captureCheckIn({
39-
// make sure this is the same slug as what you set up your
40-
// Sentry cron monitor with.
41-
monitorSlug: 'dailyEmail',
57+
// 🟡 Notify Sentry your job is running:
58+
const checkInId = Sentry.captureCheckIn({
59+
monitorSlug: '<monitor-slug>',
4260
status: 'in_progress',
4361
});
4462

45-
const startTime = timeInSeconds();
46-
47-
runTask();
63+
// Execute your scheduled task here...
4864

65+
// 🟢 Notify Sentry your job has completed successfully:
4966
Sentry.captureCheckIn({
50-
monitorSlug: 'dailyEmail',
67+
// make sure you pass in the checkInId generated by the first call to captureCheckIn
68+
checkInId,
69+
monitorSlug: '<monitor-slug>',
5170
status: 'ok',
52-
duration: timeInSeconds() - startTime,
71+
});
72+
```
73+
74+
If your job execution fails, you can notify Sentry about the failure:
75+
76+
```javascript
77+
// 🔴 Notify Sentry your job has failed:
78+
Sentry.captureCheckIn({
79+
checkInId,
80+
monitorSlug: '<monitor-slug>',
81+
status: 'error',
5382
});
5483
```
5584

0 commit comments

Comments
 (0)