Skip to content

docs(nestjs): Document SentryCron monitor config from @Cron - #19782

Merged
wedamija merged 9 commits into
masterfrom
danf/nestjs-cron-config
Nov 12, 2026
Merged

wedamija merged 9 commits into
masterfrom
danf/nestjs-cron-config

Conversation

@wedamija

@wedamija wedamija commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

Documents that @SentryCron now sends the schedule and time zone of @Cron on the same method, so check-ins create the monitor. Covers the server time zone default, which schedules send no config, and the fromCronDecorator: false opt-out.

SDK change: getsentry/sentry-javascript#25013. Merge after it ships; the page marks it as available since 11.5.0, which assumes it lands in the next minor.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Nov 2, 2026 4:55pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Nov 2, 2026 4:55pm UTC

Request Review

@wedamija
wedamija requested a review from a team October 2, 2026 22:29
@wedamija
wedamija marked this pull request as ready for review October 2, 2026 22:29
@cursor

cursor Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Services awaiting deployment · Rollout details

Warning

Rollouts can't watch this change after it deploys: every data source for this team needs to be signed in again, so a check has no telemetry to read. Sign in to your data sources, or ask a team admin to.

Status Service Environment
⚪ Not deployed yet sentry-docs

Mention @rollout in a comment to update the plan.

@coolguyzone coolguyzone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Please address or resolve the review bot comment before merging.

@wedamija
wedamija marked this pull request as draft October 23, 2026 21:12
@linear-code

linear-code Bot commented Oct 25, 2026

Copy link
Copy Markdown

JS-3999

isaacs added a commit to getsentry/sentry-javascript that referenced this pull request Oct 29, 2026
Part of a series adding automatic Crons monitoring for the most-used job
schedulers in each SDK. Check-ins for a monitor that doesn't exist yet
are dropped, so today each monitor has to be created by hand with its
schedule copied from the code. Sending the job's schedule as the monitor
config lets Sentry create the monitor and keep it in sync.

`@SentryCron` now sends the schedule and time zone of the method's
`@Cron()` decorator with its check-ins, so Sentry creates the monitor on
the first run. It's on by default; pass `fromCronDecorator: false` to
send no config. A config with its own `schedule` is used as is. Monitors
created this way are billed, and their schedule and time zone are
overwritten from `@Cron()` on each check-in.

```ts
@Cron('0 30 9 * * 1-5', { timeZone: 'Europe/Vienna' })
@SentryCron('daily-report', { checkinMargin: 2 })
async dailyReport() {}
```

Without a `timeZone`, the server's local time zone is sent. Schedules
Sentry would read differently from `@nestjs/schedule` (sub-minute,
numeric months, some day-field combinations, fixed UTC offsets) check in
without a config.

Docs: getsentry/sentry-docs#19782

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: isaacs <[email protected]>
@wedamija
wedamija marked this pull request as ready for review November 5, 2026 14:29
@wedamija
wedamija merged commit b1c24c7 into master Nov 12, 2026
30 checks passed
@wedamija
wedamija deleted the danf/nestjs-cron-config branch November 12, 2026 01:44

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 077c4781 Deployed Nov 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants