Cap METRICS_INFO and TS_INFO time range to 1d by default #168214
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 216 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.322
Real PR Conversation Timeline
1 comments
"Review active on #168214"
general
weight: 0.35
kosabogi
METRICS_INFOandTS_INFOread every time series in their time range, which is slow over a wide range or with no range at all. #164036 addedesql.query.metrics_info_max_time_rangeto cap that range, off by default. This turns it on with a default of1d.Behavior
WHEREon@timestampahead of the command (#168371) and of the requestfilter, or what both allow if the request has both. A range[t1, t2]reads[max(t1, t2 - 1d), t2]. A range of a day or less is read in full, however far back it is.[now - 1d, now]. A range with no end, or one that ends later than now, is capped from now.METRICS_INFO and TS_INFO are limited to the most recent [1d].-1removes the cap. The setting stays dynamic.Prometheus endpoints
The series, label names, label values and metadata endpoints build
TS | WHERE @timestamp ... | TS_INFO/METRICS_INFOplans with the range fromstartandend. Since #168371 the cap reads that range from theWHERE, so these endpoints need no change here:startandendup to a day apart, including the default of a day beforeend, are read in full, however far back they are.__name__(other label values don't use an info command). The narrowing is reported in thewarningsarray of the Prometheus response body and in aWarningHTTP header, for exampleseries are limited to the most recent [1d] of the time range.