You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add CDC capture exclusion to long-running query alerts (#1096)
The long-running-query alert flags any live request whose
total_elapsed_time exceeds the threshold. CDC capture runs as a
continuous SQL Agent session (EXEC sys.sp_MScdc_capture_job ->
sys.sp_cdc_scan), so it permanently trips the alert and none of the
four existing wait_type-based exclusions catch it.
Add a fifth toggle, LongRunningQueryExcludeCdc (default on), consistent
with the existing exclusion checkboxes. It filters on request text
(sp_MScdc_capture_job / sp_cdc_scan) rather than program_name so it
stays CDC-specific and does not hide unrelated Agent jobs. The predicate
is NULL-safe so encrypted-module queries (NULL sql text) remain visible.
Reported in discussion #1090.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments