Export the site script compile-cache eviction counter as a Meter #68

Open
opened 2026-11-06 15:24:44 -05:00 by dohertj2 · 0 comments
Owner

Register row 132 (deferred-work register).

SiteScriptCompileCache counts evictions and logs a rate-limited Warning, but the counter is not a System.Diagnostics.Metrics instrument; exporting also needs an entry in the ZbTelemetryOptions.Meters allowlist (SiteServiceRegistration.ObservedMeters).

Revisit trigger (from register): Wanting to alert on compile-cache thrash from Prometheus.

Current state: Not done.
Origin: 2026-10-21 system review, lane B.

Source: docs/plans/2026-07-08-deferred-work-register.md row 132

Register row 132 (deferred-work register). `SiteScriptCompileCache` counts evictions and logs a rate-limited Warning, but the counter is not a `System.Diagnostics.Metrics` instrument; exporting also needs an entry in the `ZbTelemetryOptions.Meters` allowlist (`SiteServiceRegistration.ObservedMeters`). **Revisit trigger (from register):** Wanting to alert on compile-cache thrash from Prometheus. **Current state:** Not done. Origin: 2026-10-21 system review, lane B. Source: `docs/plans/2026-07-08-deferred-work-register.md` row 132
dohertj2 added the type:review-findingpriority:p3migrated labels 2026-11-06 15:24:44 -05:00
Sign in to join this conversation.