Introduce hashicorp/go-metrics compatibility#760
Conversation
Compatability is attained with build tags Using tag armonmetrics or no tag at all will result in the library utilizing github.com/armon/go-metrics for metrics emission (like it has historically done) Using tag hashicorpmetrics will result in the library utilizing the updated github.com/hashicorp/go-metrics for metrics emission.
47ae6f8 to
a031ef8
Compare
|
How is it that |
|
Maybe I should clarify the wording in the readme. This library (and all others within the As for using |
This PR migrates the library to using
github.com/hashicorp/go-metrics/compatinstead ofgit.832008.xyz/armon/go-metrics.Applications consuming the library can control whether metrics get emitted to either
armon/go-metricsorhashicorp/go-metricsby specifying either thearmonmetricsorhashicorpmetricsbuild tags. The default behavior is currently to preferarmon/go-metricsfor maximum backwards compatibility.Future PRs will:
hashicorp/go-metricsandhashicorp/memberlistversions to one where the default behavior is to emit metrics usinghashicorp/go-metrics(Timeline: mid-2025)compatpackage usage with direct usage ofhashicorp/go-metrics(Timeline: end-2025)TODO:
hashicorp/go-metricsonce upstream PR is mergedhashicorp/memberlistonce upstreamPR is merged