Skip to content

Use the placeholder convention for the host named in AlertEngine's poison-wait comment - #3043

Merged
erikdarlingdata merged 1 commit into
devfrom
chore/comment-placeholder-alertengine
Sep 5, 2026
Merged

erikdarlingdata merged 1 commit into
devfrom
chore/comment-placeholder-alertengine

Conversation

@erikdarlingdata

Copy link
Copy Markdown
Owner

Brings one comment in AlertEngine into line with the placeholder convention the rest of the repo uses for targets.

The comment above _lastPoisonWaitCollectionTime explains why poison-wait re-fire gates on a newer collection_time as well as on the cooldown: at fleet load the collector's delivered cadence can lag the cooldown, so the cooldown elapsing is not proof a fresh observation exists. It cited the instance the duplicate alerts were observed on by name. Every comparable observation comment refers to targets through a placeholder, so this one now reads <monitor-host>.

The reasoning the comment records is unchanged — including the part worth keeping, that poison wait is deliberately not level-triggered like CPU, because a delta is one collector cycle's computation and reading it twice is the same event surfacing twice rather than two observations of a standing condition.

Comment-only: one line, no behaviour change, CRLF preserved (--numstat reports 1/1, not a whole-file rewrite).

CHANGELOG entry text

Nothing. A comment aligning with a naming convention is not a user-visible change and does not earn a line.

…ison-wait comment

The comment explaining why poison-wait re-fire gates on a newer collection_time
cited a concrete instance by name. Every other observation comment in the repo
refers to targets through the placeholder convention, so this one now reads
<monitor-host>. The reasoning it records is unchanged.
@claude

claude Bot commented Sep 5, 2026

Copy link
Copy Markdown

Reviewed. This is a comment-only change replacing a hardcoded hostname (prod-pos-use2-monitor-01) with the <monitor-host> placeholder, consistent with the placeholder convention used elsewhere in the codebase (e.g. <host>, <host>/<database> in PgDeadlockLogParser.cs and PlanCorrectionCollectorDefinitionTests.cs). No behavior change, no T-SQL involved, and AlertEngine.cs has no Lite/Darling counterpart to keep in parity. No issues found.

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