linera-io/linera-protocol

Improve metric help messages

Open

Aperta il 24 gen 2024

Vedi su GitHub
 (2 commenti) (0 reazioni) (1 assegnatario)Rust (32.149 star) (2354 fork)batch import
documentationgood first issue

Descrizione

Motivation

When metric counters are created, they need a name string and a description string. The description is used as a help message, and should describe the metric in plain English. However, there are many metrics that use very similar strings for the names and the descriptions, which make the help message practically useless.

Here is an example: https://github.com/linera-io/linera-protocol/blob/589ddefa8cbafc731952bcab0b5c5c3150949111/linera-chain/src/chain.rs#L68-L69

Proposal

Go through all created metrics and ensure they have helpful and clear descriptions.

Guida contributor