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

fix: use libevm/metrics package #880

Merged
merged 4 commits into from
Mar 24, 2025
Merged

Conversation

ARR4N
Copy link
Collaborator

@ARR4N ARR4N commented Mar 20, 2025

Why this should be merged

#745 migrated to upstream metrics and added metrics.Enabled inside plugin/evm. However the flag name is misleading and actually disables metric constructors, thus disabling all metrics.

How this works

Uses libevm/metrics instead of go-ethereum/metrics as ava-labs/libevm#165 enabled constructors by default.

How this was tested

New unit test.

Need to be documented?

No

Need to update RELEASES.md?

No

Copy link
Collaborator

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

I think we need this in the end, just need to add an exclusion for libevm/metrics in the goleak detector.

@ARR4N ARR4N changed the title chore: use libevm/metrics package fix: use libevm/metrics package Mar 24, 2025
@ARR4N ARR4N marked this pull request as ready for review March 24, 2025 16:59
@ARR4N ARR4N requested review from ceyonur, darioush and a team as code owners March 24, 2025 16:59
@ARR4N ARR4N enabled auto-merge March 24, 2025 17:00
@ARR4N ARR4N added this pull request to the merge queue Mar 24, 2025
Merged via the queue into master with commit d5511e6 Mar 24, 2025
8 checks passed
@ARR4N ARR4N deleted the arr4n/libevm-metrics-on-master branch March 24, 2025 21:35
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