1
1
# Changelog
2
2
3
- > [ !IMPORTANT]
4
- > If you are upgrading to the ` 8.x ` versions of the SDK from ` 7.x ` or below, make sure you follow our
3
+ > [ !IMPORTANT] If you are upgrading to the ` 8.x ` versions of the SDK from ` 7.x ` or below, make sure you follow our
5
4
> [ migration guide] ( https://docs.sentry.io/platforms/javascript/migration/ ) first.
6
5
7
6
## Unreleased
8
7
9
8
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
10
9
10
+ ## 8.16.0
11
+
11
12
### Important Changes
12
13
13
14
- ** feat(nextjs): Use spans generated by Next.js for App Router (#12729 )**
@@ -29,6 +30,44 @@ runtime), and you will instead receive transactions for your App Router SSR requ
29
30
30
31
If you are on Sentry SaaS, this may have an effect on your quota consumption: Less transactions, more spans.
31
32
33
+ - ** - feat(nestjs): Add nest cron monitoring support (#12781 )**
34
+
35
+ The ` @sentry/nestjs ` SDK now includes a ` @SentryCron ` decorator that can be used to augment the native NestJS ` @Cron `
36
+ decorator to send check-ins to Sentry before and after each cron job run:
37
+
38
+ ``` typescript
39
+ import { Cron } from ' @nestjs/schedule' ;
40
+ import { SentryCron , MonitorConfig } from ' @sentry/nestjs' ;
41
+ import type { MonitorConfig } from ' @sentry/types' ;
42
+
43
+ const monitorConfig: MonitorConfig = {
44
+ schedule: {
45
+ type: ' crontab' ,
46
+ value: ' * * * * *' ,
47
+ },
48
+ checkinMargin: 2 , // In minutes. Optional.
49
+ maxRuntime: 10 , // In minutes. Optional.
50
+ timezone: ' America/Los_Angeles' , // Optional.
51
+ };
52
+
53
+ export class MyCronService {
54
+ @Cron (' * * * * *' )
55
+ @SentryCron (' my-monitor-slug' , monitorConfig )
56
+ handleCron() {
57
+ // Your cron job logic here
58
+ }
59
+ }
60
+ ```
61
+
62
+ ### Other Changes
63
+
64
+ - feat(node): Allow to pass instrumentation config to ` httpIntegration ` (#12761 )
65
+ - fix: Apply stack frame metadata before event processors (#12799 )
66
+ - fix(feedback): Add missing ` h ` import in ` ScreenshotEditor ` (#12784 )
67
+ - fix(node): Ensure ` autoSessionTracking ` is enabled by default (#12790 )
68
+ - ref(feedback): Let CropCorner inherit the existing h prop (#12814 )
69
+ - ref(otel): Ensure we never swallow args for ContextManager (#12798 )
70
+
32
71
## 8.15.0
33
72
34
73
- feat(core): allow unregistering callback through ` on ` (#11710 )
0 commit comments