Skip to content

Conversation

@merolish
Copy link
Contributor

@merolish merolish commented Dec 1, 2025

Summary

Metrics to bring more in line with price-pusher and set up dashboard: http://grafana.monster-vibes.ts.net/d/ef54niixonta8c/hip-3-relayer?orgId=1

Rationale

Observability.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@vercel
Copy link

vercel bot commented Dec 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
api-reference Ready Ready Preview Comment Dec 3, 2025 10:44pm
component-library Ready Ready Preview Comment Dec 3, 2025 10:44pm
developer-hub Ready Ready Preview Comment Dec 3, 2025 10:44pm
entropy-explorer Ready Ready Preview Comment Dec 3, 2025 10:44pm
insights Ready Ready Preview Comment Dec 3, 2025 10:44pm
proposals Ready Ready Preview Comment Dec 3, 2025 10:44pm
staking Ready Ready Preview Comment Dec 3, 2025 10:44pm

Comment on lines 29 to 31
# labels: dex, status, error_reason
self.update_attempts_total = self.meter.create_counter(
name="hip_3_relayer_update_attempts_total",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have a symbol label too so we can isolate issues with particular feeds

Comment on lines 203 to 213
def _get_error_reason(self, response):
response = response.get("response")
if not response:
return None
elif "Oracle price update too often" in response:
return "rate_limit"
elif "Too many cumulative requests" in response:
return "user_limit"
else:
logger.warning("Unrecognized error response: {}", response)
return "unknown"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to turn the output here into an enum so that we don't have to check against string values in other parts of the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants