@@ -10,54 +10,50 @@ pub struct Metrics {
1010 * Metrics about packets
1111 */
1212 /// Bytes sent from a `FrameType::SendPacket`
13- #[ metrics( description = "Number of bytes sent." ) ]
13+ #[ metrics( help = "Number of bytes sent." ) ]
1414 pub bytes_sent : Counter ,
1515 /// Bytes received from a `FrameType::SendPacket`
16- #[ metrics( description = "Number of bytes received." ) ]
16+ #[ metrics( help = "Number of bytes received." ) ]
1717 pub bytes_recv : Counter ,
1818
1919 /// `FrameType::SendPacket` sent, that are not disco messages
20- #[ metrics( description = "Number of 'send' packets relayed." ) ]
20+ #[ metrics( help = "Number of 'send' packets relayed." ) ]
2121 pub send_packets_sent : Counter ,
2222 /// `FrameType::SendPacket` received, that are not disco messages
23- #[ metrics( description = "Number of 'send' packets received." ) ]
23+ #[ metrics( help = "Number of 'send' packets received." ) ]
2424 pub send_packets_recv : Counter ,
2525 /// `FrameType::SendPacket` dropped, that are not disco messages
26- #[ metrics( description = "Number of 'send' packets dropped." ) ]
26+ #[ metrics( help = "Number of 'send' packets dropped." ) ]
2727 pub send_packets_dropped : Counter ,
2828
2929 /// `FrameType::SendPacket` sent that are disco messages
30- #[ metrics( description = "Number of disco packets sent." ) ]
30+ #[ metrics( help = "Number of disco packets sent." ) ]
3131 pub disco_packets_sent : Counter ,
3232 /// `FrameType::SendPacket` received that are disco messages
33- #[ metrics( description = "Number of disco packets received." ) ]
33+ #[ metrics( help = "Number of disco packets received." ) ]
3434 pub disco_packets_recv : Counter ,
3535 /// `FrameType::SendPacket` dropped that are disco messages
36- #[ metrics( description = "Number of disco packets dropped." ) ]
36+ #[ metrics( help = "Number of disco packets dropped." ) ]
3737 pub disco_packets_dropped : Counter ,
3838
3939 /// Packets of other `FrameType`s sent
40- #[ metrics(
41- description = "Number of packets sent that were not disco packets or 'send' packets"
42- ) ]
40+ #[ metrics( help = "Number of packets sent that were not disco packets or 'send' packets" ) ]
4341 pub other_packets_sent : Counter ,
4442 /// Packets of other `FrameType`s received
45- #[ metrics(
46- description = "Number of packets received that were not disco packets or 'send' packets"
47- ) ]
43+ #[ metrics( help = "Number of packets received that were not disco packets or 'send' packets" ) ]
4844 pub other_packets_recv : Counter ,
4945 /// Packets of other `FrameType`s dropped
50- #[ metrics( description = "Number of times a non-disco, non-send packet was dropped." ) ]
46+ #[ metrics( help = "Number of times a non-disco, non-send packet was dropped." ) ]
5147 pub other_packets_dropped : Counter ,
5248
5349 /// Number of `FrameType::Ping`s received
54- #[ metrics( description = "Number of times the server has received a Ping from a client." ) ]
50+ #[ metrics( help = "Number of times the server has received a Ping from a client." ) ]
5551 pub got_ping : Counter ,
5652 /// Number of `FrameType::Pong`s sent
57- #[ metrics( description = "Number of times the server has sent a Pong to a client." ) ]
53+ #[ metrics( help = "Number of times the server has sent a Pong to a client." ) ]
5854 pub sent_pong : Counter ,
5955 /// Number of `FrameType::Unknown` received
60- #[ metrics( description = "Number of unknown frames sent to this server." ) ]
56+ #[ metrics( help = "Number of unknown frames sent to this server." ) ]
6157 pub unknown_frames : Counter ,
6258
6359 /// Number of frames received from client connection which have been rate-limited.
@@ -71,7 +67,7 @@ pub struct Metrics {
7167 /// Number of times this server has accepted a connection.
7268 pub accepts : Counter ,
7369 /// Number of connections we have removed because of an error
74- #[ metrics( description = "Number of clients that have then disconnected." ) ]
70+ #[ metrics( help = "Number of clients that have then disconnected." ) ]
7571 pub disconnects : Counter ,
7672
7773 /// Number of unique client keys per day
0 commit comments