Exclude db and internal tags from schema payloads #25691
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 248 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.330
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #25691"
general
weight: 0.35
HadhemiDD
What does this PR do?
SchemaCollector.base_eventnow builds schema payload tags from the check'sTagManagerwithget_tags(include_internal=False, include_db=False). The per-databasedbtag and the internal resource tags (dd.internal.resource:*) are no longer sent on schema payloads. Checks without atag_manager(SAP HANA) still sendcheck.tags. The schema status metrics keep usingcheck.tags.Effect per integration:
database_instancepayloads.database_instanceand settings payloads.Motivation
DBMON-6988: several payloads write the
database_instancerow's tags. Schema payloads includeddb:(and on Postgres, internal resource tags), but the instance metadata did not. As a result, the row's tags flapped between payloads. Internal resource tags are only enriched by metrics intake, so on metadata payloads they are raw strings. This fixes an issue where we're accidentally retaining and attaching an incorrectly scopeddbtag that doesn't apply to the scope of the schema eventsChecklist before requesting review
[DBMON-6988]: https://datadoghq.atlassian.net/browse/DBMON-6988?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ