@@ -25,43 +25,43 @@ pub fn describe_metrics() -> Metrics {
2525 metrics. metric_collection . describe_counter (
2626 & metric_name ! ( UDP_TRACKER_SERVER_REQUESTS_ABORTED_TOTAL ) ,
2727 Some ( Unit :: Count ) ,
28- Some ( MetricDescription :: new ( "Total number of UDP requests aborted" ) ) ,
28+ Some ( & MetricDescription :: new ( "Total number of UDP requests aborted" ) ) ,
2929 ) ;
3030
3131 metrics. metric_collection . describe_counter (
3232 & metric_name ! ( UDP_TRACKER_SERVER_REQUESTS_BANNED_TOTAL ) ,
3333 Some ( Unit :: Count ) ,
34- Some ( MetricDescription :: new ( "Total number of UDP requests banned" ) ) ,
34+ Some ( & MetricDescription :: new ( "Total number of UDP requests banned" ) ) ,
3535 ) ;
3636
3737 metrics. metric_collection . describe_counter (
3838 & metric_name ! ( UDP_TRACKER_SERVER_REQUESTS_RECEIVED_TOTAL ) ,
3939 Some ( Unit :: Count ) ,
40- Some ( MetricDescription :: new ( "Total number of UDP requests received" ) ) ,
40+ Some ( & MetricDescription :: new ( "Total number of UDP requests received" ) ) ,
4141 ) ;
4242
4343 metrics. metric_collection . describe_counter (
4444 & metric_name ! ( UDP_TRACKER_SERVER_REQUESTS_ACCEPTED_TOTAL ) ,
4545 Some ( Unit :: Count ) ,
46- Some ( MetricDescription :: new ( "Total number of UDP requests accepted" ) ) ,
46+ Some ( & MetricDescription :: new ( "Total number of UDP requests accepted" ) ) ,
4747 ) ;
4848
4949 metrics. metric_collection . describe_counter (
5050 & metric_name ! ( UDP_TRACKER_SERVER_RESPONSES_SENT_TOTAL ) ,
5151 Some ( Unit :: Count ) ,
52- Some ( MetricDescription :: new ( "Total number of UDP responses sent" ) ) ,
52+ Some ( & MetricDescription :: new ( "Total number of UDP responses sent" ) ) ,
5353 ) ;
5454
5555 metrics. metric_collection . describe_counter (
5656 & metric_name ! ( UDP_TRACKER_SERVER_ERRORS_TOTAL ) ,
5757 Some ( Unit :: Count ) ,
58- Some ( MetricDescription :: new ( "Total number of errors processing UDP requests" ) ) ,
58+ Some ( & MetricDescription :: new ( "Total number of errors processing UDP requests" ) ) ,
5959 ) ;
6060
6161 metrics. metric_collection . describe_gauge (
6262 & metric_name ! ( UDP_TRACKER_SERVER_PERFORMANCE_AVG_PROCESSING_TIME_NS ) ,
6363 Some ( Unit :: Nanoseconds ) ,
64- Some ( MetricDescription :: new (
64+ Some ( & MetricDescription :: new (
6565 "Average time to process a UDP connect request in nanoseconds" ,
6666 ) ) ,
6767 ) ;
0 commit comments