From b4804a96da834fd0bfb9a562792468d5e98bcd11 Mon Sep 17 00:00:00 2001 From: Flotapponnier Date: Sun, 20 Sep 2026 23:50:44 +0200 Subject: [PATCH] terminal-fill: tfq_sample_size{kind=effective} also emitted on published rows (#2554 set it on the held branch only) Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01L4rjxemTvgRwrCG6D2iK5D --- harnesses/terminal-fill-quality/cmd/script/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/harnesses/terminal-fill-quality/cmd/script/main.go b/harnesses/terminal-fill-quality/cmd/script/main.go index b62d2368a..a8d9bb3b1 100644 --- a/harnesses/terminal-fill-quality/cmd/script/main.go +++ b/harnesses/terminal-fill-quality/cmd/script/main.go @@ -1918,6 +1918,11 @@ func publishGauges(stats []TerminalStats) { gSamples.WithLabelValues(ts.Product, ts.Chain, "seen").Set(float64(ts.Seen)) gSamples.WithLabelValues(ts.Product, ts.Chain, "parsed").Set(float64(ts.Parsed)) gSamples.WithLabelValues(ts.Product, ts.Chain, "priced").Set(float64(ts.Priced)) + if ts.NEff > 0 { + gSamples.WithLabelValues(ts.Product, ts.Chain, "effective").Set(math.Round(ts.NEff)) + } else { + gSamples.DeleteLabelValues(ts.Product, ts.Chain, "effective") + } if ts.TradeUSD != nil { gTrade.WithLabelValues(ts.Product, ts.Chain, "median").Set(ts.TradeUSD.Median) gTrade.WithLabelValues(ts.Product, ts.Chain, "p90").Set(ts.TradeUSD.P90)