Skip to content

Feature/long running query exclusions#2

Merged
HannahVernon merged 3 commits intodevfrom
feature/long-running-query-exclusions
Feb 27, 2026
Merged

Feature/long running query exclusions#2
HannahVernon merged 3 commits intodevfrom
feature/long-running-query-exclusions

Conversation

@HannahVernon
Copy link
Owner

What does this PR do?

Adds exclusions to GetLongRunningQueriesAsync() to exclude sp_server_diagnostics and WAITFOR wait types. Adds parameters to GetLongRunningQueriesAsync() for future use to allow precise control over exclusion of those wait types, along with an optional parameter to control the maximum number of long running queries returned to the caller.

Which component(s) does this affect?

  • [✔] Full Dashboard

How was this tested?

Tested against SQL Server 2022 with sp_server_diagnostics wait types caused by Windows Server Failover Cluster monitoring, and via a manual query with WAITFOR DELAY '00:30:00';

Checklist

  • [✔] I have read the contributing guide
  • [✔] My code builds with zero warnings (dotnet build -c Debug)
  • [✔] I have tested my changes against at least one SQL Server version
  • [✔] I have not introduced any hardcoded credentials or server names

…_DIAGNOSTIC wait types, and WAITFOR wait types.
…to allow future configurability on the number of long-running queries returned. Added optional parameter to control display of WAITFOR types in future.
@HannahVernon HannahVernon merged commit 481a3a6 into dev Feb 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant