Repository navigation
📈 Update resolver metrics and tracking for all endopints - #42
Merged
Merged
Conversation
shashankbrgowda
approved these changes
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend resolver outcome metrics across all resolver endpoints
Summary
Extends product-level Prometheus outcome metrics beyond the legacy URL resolver so monitoring consistently reflects resolver behaviour across the service.
The resolver now exposes:
This complements existing HTTP metrics. HTTP status continues to describe the protocol response, while outcome describes whether the resolver achieved an expected product result.
Endpoint coverage
Outcomes
response_modedistinguishes browser/HTML and JSON/API responses.Why
Raw HTTP 4xx metrics do not accurately represent resolver health:
This metric lets Grafana distinguish expected product outcomes—such as archive fallbacks and interstitials—from genuine internal failures.
Dashboard guidance
Use outcome metrics for resolver-health panels and alerts:
Example overall successful-outcome rate:
Raw HTTP metrics should remain available for traffic and protocol diagnostics, including framework-level responses such as 405 Method Not Allowed, which do not enter resolver route handlers.
Additional change
Simplified the Rapid invalid-accession error path so each request records exactly one invalid_request outcome, without changing its HTTP behaviour.