Pre-initialized labels for slash command metrics for immediate visibility.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (push) Successful in 23s
CI / Type Checking (push) Successful in 10s
CI / Spelling (push) Successful in 5s

This commit is contained in:
2026-03-23 17:44:54 -04:00
parent 0013726b7f
commit 2b65dfe076
+8
View File
@@ -57,11 +57,19 @@ PINGME = Counter(
"/pingme command outcomes", "/pingme command outcomes",
["outcome"], ["outcome"],
) )
PINGME.labels(outcome="opted_in")
PINGME.labels(outcome="opted_out")
FORGETME = Counter( FORGETME = Counter(
"crabstero_forgetme_total", "crabstero_forgetme_total",
"/forgetme command outcomes", "/forgetme command outcomes",
["outcome"], ["outcome"],
) )
FORGETME.labels(outcome="completed")
FORGETME.labels(outcome="cancelled")
FORGETME.labels(outcome="timeout")
FORGETME.labels(outcome="already_forgotten")
ERRORS = Counter( ERRORS = Counter(
"crabstero_errors_total", "crabstero_errors_total",
"Unhandled exceptions by source", "Unhandled exceptions by source",