Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(metrics): remove dependency on optimism metrics #94

Merged
merged 4 commits into from
Aug 22, 2024

Conversation

samlaf
Copy link
Collaborator

@samlaf samlaf commented Aug 20, 2024

Pull Request Template

Changes proposed

Main issue I wanted to resolve is changing the histogram buckets to be useful (see screenshot below).
We were using the optimism metrics which define buckets for their rpc use case, which don't make sense for our case.
So I just pulled in their code, and added a status code label to the requests_total metric.

Screenshots (Optional)

image

Note to reviewers

metrics/metrics.go Show resolved Hide resolved
server/server.go Show resolved Hide resolved
Copy link
Collaborator

@epociask epociask left a comment

Choose a reason for hiding this comment

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

LGTM

@samlaf samlaf merged commit 1838c6e into main Aug 22, 2024
8 checks passed
@samlaf samlaf deleted the feat-refactor-metrics branch August 22, 2024 08:09
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.

2 participants