Tag schema collector telemetry with the payload kind #25722
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 280 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.337
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #25722"
general
weight: 0.35
HadhemiDD
What does this PR do?
Adds a
kind:<kind>tag to the telemetry thatSchemaCollector.collect_schemas()emits:dd.<dbms>.schema.time, the object count metric (tables_countby default), anddd.<dbms>.schema.payloads_count. The value is the collector's payloadkind, such assqlserver_databases.Motivation
Follow-up to this review thread on #24928, which adds a second SQL Server schema collector for views.
Both collectors run in the same job and emit telemetry with identical tags. As a result, the
payloads_countgauge from the view run overwrites the one from the table run, and theschema.timehistogram merges both runs into one distribution.Every existing collector (Postgres, MySQL, SQL Server) has a single kind, so queries that don't filter by
kindreturn the same values as before.Checklist before requesting review
<!--
How to verify: run
gh pr diff <PR> --repo DataDog/integrations-core, review every changed line,and compare the final diff with the description above.
-->
<!--
How to verify: check the diff for relevant tests and run them as described in
AGENTS.md.-->
<!--
How to verify: run
gh api repos/DataDog/integrations-core/pulls/<PR>/commentsandgh pr view <PR> --repo DataDog/integrations-core --json reviews,comments, then fix eachfinding or reply with the reason no change is needed.
-->
<!-- Coding agents: never tick this item. Only the human author may tick it. -->
<!--
QA label: PRs that only change code owned exclusively by @DataDog/agent-integrations (see
.github/CODEOWNERS) always useqa/skip-qa, neverqa/required.-->
🤖 Generated with Claude Code