Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat: keyless obs initialize values (#4635)

Thomas Kosmas75662f9bb8db
diff --git a/apps/api/src/lib/keyless-metrics.ts b/apps/api/src/lib/keyless-metrics.ts
index d0ec3ff4d..4b1c0a6b6 100644
--- a/apps/api/src/lib/keyless-metrics.ts
+++ b/apps/api/src/lib/keyless-metrics.ts
@@ -28,3 +28,19 @@ export const spurBypassesTotal = new Counter({
help: "Spur checks skipped or failed open without a reputation result; includes eligibility probes, not necessarily admitted requests",
labelNames: ["reason"],
});
+
+// Export quiet error and bypass series before their first event.
+for (const event of ["lookup_error", "cache_error", "wait_timeout"]) {
+ spurEventsTotal.inc({ event }, 0);
+}
+
+for (const reason of [
+ "disabled",
+ "non_ipv4",
+ "lookup_error",
+ "cached_failure",
+ "lock_error",
+ "wait_timeout",
+]) {
+ spurBypassesTotal.inc({ reason }, 0);
+}