Rules Hub
Code Ruleset
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
Separate cache recovery metrics from response origin
Preserve existing metric fields and distinguish recovery attempts from the provider that actually serves the response, including degraded responses.
Bad example
| 1 | log({ fallback: missingBuckets > 0 }); |
Explanation (EN)
Preserve existing metric fields and distinguish recovery attempts from the provider that actually serves the response, including degraded responses.
Objašnjenje (HR)
Preserve existing metric fields and distinguish recovery attempts from the provider that actually serves the response, including degraded responses.
Good example
| 1 | log({ recovery: missingBuckets > 0, servedFrom, fallback: servedFrom !== "cache" }); |
Explanation (EN)
Separate cache recovery metrics from response origin
Objašnjenje (HR)
Separate cache recovery metrics from response origin
Notes (EN)
Preserve existing metric fields and distinguish recovery attempts from the provider that actually serves the response, including degraded responses.
Bilješke (HR)
Primijeniti pri promjenama cachea, fallbacka i obrade skupova podataka.
Exceptions / Tradeoffs (EN)
Intentional metric schema changes require coordinated consumer migration.
Iznimke / Tradeoffi (HR)
Intentional metric schema changes require coordinated consumer migration.