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

app/eth2wrap: implement eth2 wrapper for metrics and errors #359

Merged
merged 3 commits into from
Apr 6, 2022

Conversation

corverroos
Copy link
Contributor

@corverroos corverroos commented Apr 5, 2022

Add a app/eth2wrap package the contains a Service type that wraps eth2http.Service by adding prometheus metrics and error wrapping (for proper stack traces). It uses code generation.

category: feature
ticket: #362

}
)

func main() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

code generator


package eth2metrics

// Code generated by genmetrics.go. DO NOT EDIT.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

resulting generated code

Copy link
Contributor

@dB2510 dB2510 left a comment

Choose a reason for hiding this comment

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

LGTM!

@dB2510
Copy link
Contributor

dB2510 commented Apr 6, 2022

@corverroos verify pr check is not working it seems.

@corverroos corverroos changed the title core/eth2metrics: implement eth2 metrics wrapper app/eth2wrap: implement eth2 wrapper for metrics and errors Apr 6, 2022
@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Apr 6, 2022
@obol-bulldozer obol-bulldozer bot merged commit 85c04cf into main Apr 6, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/metriceth2 branch April 6, 2022 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants