https://github.com/tendermint/tendermint
Revision f2c32c9b3ee00605e38010321d8d7d32e2d692c8 authored by William Banfield on 21 September 2022, 17:07:07 UTC, committed by GitHub on 21 September 2022, 17:07:07 UTC
Absence of this label causes a panic because the setters try to access the label despite it never being added to the metric. This PR adds the label to the metrics, thus preventing the panic.

#### PR checklist

- [ ] Tests written/updated, or no tests needed
- [ ] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [ ] Updated relevant documentation (`docs/`) and code comments, or no
      documentation updates needed

1 parent 84bc77c
History
Tip revision: f2c32c9b3ee00605e38010321d8d7d32e2d692c8 authored by William Banfield on 21 September 2022, 17:07:07 UTC
metrics: fix panic because of absent prometheus label (#9455)
Tip revision: f2c32c9
File Mode Size
.github
DOCKER
abci
blocksync
cmd
config
consensus
crypto
docs
evidence
internal
libs
light
mempool
networks
node
p2p
privval
proto
proxy
rpc
scripts
spec
state
statesync
store
test
third_party
tools
types
version
.clang-format -rw-r--r-- 241 bytes
.dockerignore -rw-r--r-- 63 bytes
.editorconfig -rw-r--r-- 280 bytes
.gitignore -rw-r--r-- 786 bytes
.golangci.yml -rw-r--r-- 716 bytes
.goreleaser.yml -rw-r--r-- 638 bytes
.markdownlint.yml -rw-r--r-- 346 bytes
.markdownlintignore -rw-r--r-- 89 bytes
.md-link-check.json -rw-r--r-- 122 bytes
CHANGELOG.md -rw-r--r-- 197.9 KB
CHANGELOG_PENDING.md -rw-r--r-- 4.8 KB
CODE_OF_CONDUCT.md -rw-r--r-- 5.1 KB
CONTRIBUTING.md -rw-r--r-- 15.9 KB
LICENSE -rw-r--r-- 11.1 KB
Makefile -rw-r--r-- 13.8 KB
PHILOSOPHY.md -rw-r--r-- 7.5 KB
README.md -rw-r--r-- 7.4 KB
RELEASES.md -rw-r--r-- 18.5 KB
SECURITY.md -rw-r--r-- 7.9 KB
STYLE_GUIDE.md -rw-r--r-- 7.6 KB
UPGRADING.md -rw-r--r-- 30.7 KB
Vagrantfile -rw-r--r-- 2.1 KB
appveyor.yml -rw-r--r-- 261 bytes
buf.gen.yaml -rw-r--r-- 278 bytes
buf.work.yaml -rw-r--r-- 35 bytes
buf.yaml -rw-r--r-- 151 bytes
codecov.yml -rw-r--r-- 407 bytes
docker-compose.yml -rw-r--r-- 1.3 KB
dredd.yml -rw-r--r-- 700 bytes
go.mod -rw-r--r-- 13.4 KB
go.sum -rw-r--r-- 169.7 KB
release_notes.md -rw-r--r-- 400 bytes
tests.mk -rw-r--r-- 1.5 KB

README.md

back to top