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

Upgrade github.com/armon/go-metrics to github.com/hashicorp/go-metrics #558

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkeeler
Copy link
Member

@mkeeler mkeeler commented Jun 9, 2023

This also requires bumping the module version to v2. Technically there is no API incompatibility but its a breaking change due to important side effects not happening correctly. That side effect is that programs using armon/go-metrics and having Raft emit metrics to the global metrics handler would no longer see metrics unless they also upgrade to hashicorp/go-metrics.

This is due to Go treating the armon/go-metrics and hashicorp/go-metrics as distinct modules. If both are present in the program than each will have a separate global metrics handler causing only partial metrics to be seen.

TODO:

This also requires bumping the module version to v2. Technically there is no API incompatibility but its a breaking change due to important side effects not happening correctly. That side effect is that programs using armon/go-metrics and having Raft emit metrics to the global metrics handler would no longer see metrics unless they also upgrade to hashicorp/go-metrics.

This is due to Go treating the armon/go-metrics and hashicorp/go-metrics as distinct modules. If both are present in the program than each will have a separate global metrics handler causing only partial metrics to be seen.
@mkeeler mkeeler requested a review from a team as a code owner June 9, 2023 15:37
@mkeeler mkeeler requested review from skpratt, rboyer and a team and removed request for a team, skpratt and rboyer June 9, 2023 15:37
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.

None yet

1 participant