You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f7c7814
Browse filesBrowse the repository at this point in the historyBrowse files
fix(usage): disclose the window a truncated read actually covers
The usage API reads the newest managementUsageMaxReadBytes and applies
the 7d/30d/all filter afterwards, so on a busy installation both 30d and
Available history summarize the same moving byte tail. A measured case
had 30d omitting 73.6% of in-range requests while still labelled 30d,
and cumulative totals can decrease as older rows fall out of the window.
The response now reports snapshotWindowStart/End: the timestamp bounds of
the rows the reader loaded, before range and surface filtering. It
describes the READ rather than the query, because truncation is a
property of the read.
Deliberately not a completeness claim. usage.jsonl is appended when a
request completes while each row carries the request start time, so a
long-running request can be appended after shorter ones that started
later. The oldest loaded timestamp therefore does not bound what the
dropped prefix contains, and no derived rangeFullyCovered flag would be
sound. The dashboard names the loaded window and downgrades the notice
from ok to warn, since a total that omits in-range rows is a caveat.
This is a partial mitigation, not the fix#1497 asks for: complete
aggregation still needs the rollup work tracked in #1008.
Refs #1497, #1008
"usage.historyTruncated": "Die Summen beziehen sich nur auf den verfügbaren Verlauf, da ältere Nutzungsdaten nicht geladen wurden.",
740
+
"usage.historyTruncatedWindow": "Die Summen umfassen nur die von {start} bis {end} geladene Nutzung. Ältere Einträge überschreiten das Leselimit, daher kann jeder gewählte Zeitraum unvollständig sein.",
Copy file name to clipboardExpand all lines: gui/src/i18n/en.ts
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -768,6 +768,7 @@ export const en = {
768
768
"usage.range.all": "All",
769
769
"usage.range.available": "Available history",
770
770
"usage.historyTruncated": "Totals cover available history only because older usage was not loaded.",
771
+
"usage.historyTruncatedWindow": "Totals cover only the usage loaded from {start} to {end}. Older entries exceed the read limit, so any selected range may be incomplete.",
"usage.historyTruncated": "Итоги охватывают только доступную историю, поскольку старые данные не загружены.",
761
+
"usage.historyTruncatedWindow": "Итоги охватывают только использование, загруженное с {start} по {end}. Более старые записи превышают лимит чтения, поэтому выбранный период может быть неполным.",
"usage.historyTruncated": "Toplamlar yalnızca mevcut geçmişi kapsar.",
768
+
"usage.historyTruncatedWindow": "Toplamlar yalnızca {start} - {end} aralığında yüklenen kullanımı kapsar. Daha eski kayıtlar okuma sınırını aştığı için seçilen aralık eksik olabilir.",
0 commit comments