Skip to content

Get-DbaWaitStatistic - Add ExcludeWaitType and IncludeWaitType parameters#10276

Open
andreasjordan wants to merge 4 commits intodevelopmentfrom
claude/issue-9250-20251128-1657
Open

Get-DbaWaitStatistic - Add ExcludeWaitType and IncludeWaitType parameters#10276
andreasjordan wants to merge 4 commits intodevelopmentfrom
claude/issue-9250-20251128-1657

Conversation

@andreasjordan
Copy link
Collaborator

Summary

Adds fine-grained filtering control for wait statistics:

  • ExcludeWaitType: Exclude additional wait types beyond default ignorable list
  • IncludeWaitType: Include specific wait types even if in ignorable list

This allows users to customize wait filtering (e.g., exclude CXPACKET/CXCONSUMER) without modifying source code. Maintains full backward compatibility.

Fixes #9250

Examples

# Exclude parallelism waits
Get-DbaWaitStatistic -SqlInstance sql2016 -ExcludeWaitType "CXPACKET", "CXCONSUMER"

# Include a specific wait that's normally ignored
Get-DbaWaitStatistic -SqlInstance sql2016 -IncludeWaitType "BROKER_RECEIVE_WAITFOR"

Generated with Claude Code

github-actions bot and others added 4 commits November 28, 2025 17:00
…ters

Adds fine-grained filtering control for wait statistics:
- ExcludeWaitType: Exclude additional wait types beyond default ignorable list
- IncludeWaitType: Include specific wait types even if in ignorable list

This allows users to customize wait filtering (e.g., exclude CXPACKET/CXCONSUMER)
without modifying source code. Maintains full backward compatibility.

Fixes #9250

(do Get-DbaWaitStatistic)

Co-authored-by: Chrissy LeMaire <potatoqualitee@users.noreply.github.com>
@andreasjordan andreasjordan marked this pull request as ready for review March 21, 2026 15:23
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.

Get-DbaWaitStatistic Should Allow Filtering In/Out Extra Waits

1 participant