Skip to content
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d86397f
docs(dotnet): Add Quartz.NET crons page
wedamija Oct 3, 2026
019b92e
docs(dotnet): Clarify Quartz.NET version, setup, time zones and slugs
wedamija Oct 5, 2026
6a8e1a7
docs(dotnet): Cover Quartz.NET 4.x with Sentry.Quartz4
wedamija Oct 5, 2026
5b748be
docs(dotnet): Note where GroupMatcher lives in Quartz.NET 4.x
wedamija Oct 5, 2026
2bfc69c
docs(dotnet): Note that Sentry.Quartz logs an error on Quartz.NET 4.x
wedamija Oct 5, 2026
f9c415d
docs(dotnet): Cover Sentry.Quartz4 and Sentry.Quartz3
wedamija Oct 6, 2026
3ade61e
docs(dotnet): Rename Sentry.Quartz4 to Sentry.Quartz
wedamija Oct 6, 2026
cd4e826
docs(dotnet): Update Quartz.NET crons for the SDK review changes
wedamija Oct 8, 2026
78ac3b7
docs(dotnet): Note that deleted Quartz monitors are re-created
wedamija Oct 8, 2026
00ad40a
docs(dotnet): Document monitoring every Quartz.NET job
wedamija Oct 17, 2026
f3b04bd
docs(dotnet): Rename SentryCronMonitorSlug to SentryMonitorSlug
wedamija Oct 17, 2026
cdc8471
docs(dotnet): Rename SentryCronMonitorSlug to SentryMonitorSlug
wedamija Oct 17, 2026
8252a2c
docs(dotnet): Recommend monitoring all Quartz.NET jobs first
wedamija Oct 20, 2026
1c2c99c
Merge remote-tracking branch 'origin/danf/dotnet-quartz-crons-docs' i…
wedamija Oct 20, 2026
5544af8
docs(dotnet): Mention ExcludedJobs when stopping Quartz.NET monitoring
wedamija Oct 20, 2026
bbf0ed8
docs(dotnet): Update Quartz.NET exception capture and slug logging
wedamija Oct 20, 2026
5672acf
Merge remote-tracking branch 'origin/danf/dotnet-quartz-crons-docs' i…
wedamija Oct 20, 2026
9df04b7
docs(dotnet): Say shared-slug triggers lose the schedule only when it…
jamescrosswell Oct 20, 2026
24b1add
Merge remote-tracking branch 'origin/danf/dotnet-quartz-crons-docs' i…
wedamija Oct 21, 2026
ce044fc
docs(dotnet): Say Sentry.Quartz captures each job exception once
wedamija Oct 21, 2026
f042d4d
Merge branch 'danf/dotnet-quartz-crons-docs' into danf/dotnet-quartz-…
wedamija Oct 21, 2026
e2cf934
docs(dotnet): Match Quartz slug rule to shared normalization
wedamija Oct 22, 2026
f08ecf5
docs(dotnet): Say which Quartz jobs MonitorAllJobs skips
wedamija Oct 29, 2026
e3a2fac
Note that MonitorAllJobs skips jobs with conflicting schedules
wedamija Oct 29, 2026
2f7b6ae
docs(dotnet): Name 7.0.0 for the Quartz.NET packages
wedamija Oct 30, 2026
dfa8ac7
docs(dotnet): Point Quartz monitor-all skips to Monitor Schedule
wedamija Oct 30, 2026
a0d7504
Merge remote-tracking branch 'origin/master' into danf/dotnet-quartz-…
wedamija Nov 12, 2026
ba19516
Merge branch 'danf/dotnet-quartz-crons-docs' into danf/dotnet-quartz-…
wedamija Nov 12, 2026
9ad46c5
docs(dotnet): Name 6.13.0 for the Quartz.NET packages
wedamija Nov 12, 2026
4b03f08
Merge branch 'danf/dotnet-quartz-crons-docs' into danf/dotnet-quartz-…
wedamija Nov 12, 2026
21241b4
docs(dotnet): Clarify Quartz.NET 3.x vs 4.x exception capture
wedamija Nov 16, 2026
8673da8
docs(dotnet): Clarify Quartz monitor selection and unscheduled triggers
wedamija Nov 16, 2026
dd73020
Merge branch 'danf/dotnet-quartz-crons-docs' of https://github.com/ge…
wedamija Nov 16, 2026
c6e9ae6
Merge remote-tracking branch 'origin/master' into danf/dotnet-quartz-…
wedamija Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 37 additions & 8 deletions docs/platforms/dotnet/common/crons/quartz/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,38 @@ scheduler.ListenerManager.AddJobListener(new SentryJobListener());

## Choose Which Jobs to Monitor

Add the `SentryMonitorSlug` attribute to each job class you want to monitor. Jobs without it aren't monitored.
For each monitored job, the SDK captures a check-in with `CheckInStatus.InProgress` when the job starts. When the job finishes, it updates the check-in to `CheckInStatus.Ok`, or to `CheckInStatus.Error` if the job threw an exception or was cancelled, along with how long the job ran.

With Quartz.NET 4.x, the SDK captures each exception a job throws once, in the job's scope, so it's tagged with `quartz.job` and shares a trace with the check-in.

With Quartz.NET 3.x, the SDK doesn't capture the exceptions jobs throw. A failed run still sends an error check-in, but Quartz.NET handles the exception itself and logs it as an error. That log entry only reaches Sentry if you use one of Sentry's hosting integrations, such as `Sentry.Extensions.Hosting` or `Sentry.AspNetCore`, or one of its logging integrations, such as `Sentry.Extensions.Logging`. These events aren't tagged with `quartz.job` and don't share a trace with the check-in.

### Monitor All Jobs

We recommend monitoring every scheduled job. Set `MonitorAllJobs`, and jobs whose trigger has a schedule Sentry can send are monitored without adding an attribute to each class. Jobs aren't monitored when the trigger that started them has a schedule Sentry can't send (see [Monitor Schedule](#monitor-schedule)), or when they're built without `WithIdentity`. Jobs whose triggers have different schedules, or that share a slug with a job on a different schedule, aren't monitored either, since Sentry can't create one monitor for them.

To skip some jobs, add them to `ExcludedJobs`. A string matches a job whose name or full key (`group.name`) is equal to it, and a `Regex` matches a job whose name or full key it matches. Jobs with `[SentryMonitorSlug]` are monitored even when they match.

```csharp {tabTitle:Quartz.NET 4.x}
q.AddSentry(options =>
{
options.MonitorAllJobs = true;
options.ExcludedJobs.Add("reports.AdhocExport");
options.ExcludedJobs.Add(new Regex(@"^maintenance\."));
});
```

```csharp {tabTitle:Quartz.NET 3.x}
var options = new SentryQuartzOptions { MonitorAllJobs = true };
options.ExcludedJobs.Add("reports.AdhocExport");
q.AddJobListener(_ => new SentryJobListener(options));
```

These jobs use the slug of their job key, described below.

### Monitor Specific Jobs

To monitor only some jobs, add the `SentryMonitorSlug` attribute to each job class you want to monitor. Jobs without it aren't monitored unless `MonitorAllJobs` is set.

```csharp
[SentryMonitorSlug]
Expand All @@ -70,11 +101,7 @@ public class PricingUpdateJob : IJob
}
```

The SDK captures a check-in with `CheckInStatus.InProgress` when a job starts. When the job finishes, it updates the check-in to `CheckInStatus.Ok`, or to `CheckInStatus.Error` if the job threw an exception or was cancelled, along with how long the job ran.

With Quartz.NET 4.x, the SDK captures each exception a job throws once, in the job's scope, so it's tagged with `quartz.job` and shares a trace with the check-in.

With Quartz.NET 3.x, the SDK doesn't capture the exceptions jobs throw. A failed run still sends an error check-in, but Quartz.NET handles the exception itself and logs it as an error. That log entry only reaches Sentry if you use one of Sentry's hosting integrations, such as `Sentry.Extensions.Hosting` or `Sentry.AspNetCore`, or one of its logging integrations, such as `Sentry.Extensions.Logging`. These events aren't tagged with `quartz.job` and don't share a trace with the check-in.
With `MonitorAllJobs` on, a job with the attribute still sends one check-in per run, using the attribute's slug and settings.

## Monitor Slugs

Expand Down Expand Up @@ -105,7 +132,9 @@ Sentry only creates a monitor from a check-in that includes a schedule. For moni
- Cron triggers, with the trigger's time zone. Quartz.NET cron triggers use the server's local time zone unless you set one with `InTimeZone`, so set it if your servers don't all use the same time zone. The cron expression must use a fixed number of seconds and no year, `L`, `W`, or `#`. Quartz.NET 3.x needs `?` in exactly one of the two day fields. Quartz.NET 4.x also accepts `*` or values in both. When both have values, the job runs on days that match either field, and Sentry reads the schedule the same way.
- Simple triggers that repeat forever every whole number of minutes, hours, or days.

Other triggers, triggers with a calendar, and time zones without an IANA ID (Windows time zone IDs on .NET Framework) are sent without a schedule. Triggers that share a slug are also sent without one if their schedules differ, for example two triggers of the same job. To give each trigger its own monitor, set a different slug in each trigger's data map.
Other triggers, triggers with a calendar, and time zones without an IANA ID (Windows time zone IDs on .NET Framework) are sent without a schedule. So are triggers that share a slug but have different schedules, for example two triggers of the same job. To give each trigger its own monitor, set a different slug in each trigger's data map.

Sentry can't create a monitor from a check-in without a schedule, so `MonitorAllJobs` skips these jobs. To monitor one anyway, add `[SentryMonitorSlug]` to it, and either create its monitor in Sentry or set its schedule with [`ConfigureMonitorOptions`](#monitor-settings).

Sentry sets the monitor's schedule and time zone from every check-in that includes them, so changes you make to those two settings in Sentry are overwritten. Other monitor settings are kept. To stop sending the schedule for one job, set `SendMonitorConfig` on its attribute:

Expand All @@ -124,7 +153,7 @@ q.AddSentry(options => options.SendMonitorConfig = false);
q.AddJobListener(_ => new SentryJobListener(new SentryQuartzOptions { SendMonitorConfig = false }));
```

If you delete a monitor while its job still has `[SentryMonitorSlug]`, the next run creates it again. To stop monitoring a job, disable the monitor in Sentry, or remove the attribute.
If you delete a monitor while its job is still monitored, the next run that sends a schedule creates it again. To stop monitoring a job, disable the monitor in Sentry, remove the attribute, or add the job to `ExcludedJobs`.

## Monitor Settings

Expand Down
Loading