build(deps): use hashicorp/go-metrics instead of armon/go-metrics (#16790)

This commit is contained in:
Julien Robert
2023-06-30 14:21:57 +00:00
committed by GitHub
parent ec1f0c5df1
commit ae39e8e631
26 changed files with 46 additions and 32 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ and is rich with ecosystem tooling.
We must also aim to integrate metrics into the Cosmos SDK in the most seamless way possible such that
metrics may be added or removed at will and without much friction. To do this, we will use the
[go-metrics](https://github.com/armon/go-metrics) library.
[go-metrics](https://github.com/hashicorp/go-metrics) library.
Finally, operators may enable telemetry along with specific configuration options. If enabled, metrics
will be exposed via `/metrics?format={text|prometheus}` via the API server.
+1 -1
View File
@@ -18,7 +18,7 @@ To query active metrics (see retention note above) you have to enable API server
## Emitting metrics
If telemetry is enabled via configuration, a single global metrics collector is registered via the
[go-metrics](https://github.com/armon/go-metrics) library. This allows emitting and collecting
[go-metrics](https://github.com/hashicorp/go-metrics) library. This allows emitting and collecting
metrics through simple [API](https://github.com/cosmos/cosmos-sdk/blob/v0.50.0-alpha.0/telemetry/wrapper.go). Example:
```go