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
[Docs]: Add Prometheus / OpenTelemetry observability snippet for doWithMeta and getOrSetWithMeta #10
Teams running \light-shield\ in production want to track cache hit/stale/miss rates, XFetch early refreshes, cache fallback errors, and coalesced caller counts.
Scope
Add a clear example (in \examples/\ or a collapsible \README.md\ recipe) mapping \SingleFlight.doWithMeta()\ and \StampedeShield.getOrSetWithMeta()\ fields (\status,
evalidated, \shared, \coalescedCount, \cacheError) to Prometheus counters or OpenTelemetry metrics.
Activity
Tejaa11 commentedon Dec 4, 2026
The README recipe in #11 shows how to distinguish an early XFetch refresh from stale revalidation using the exported Prometheus metrics.