mirror of
https://github.com/zaphar/durnitisp.git
synced 2025-07-22 18:19:48 -04:00
fix: some counters not getting used
This commit is contained in:
parent
54f7810b27
commit
977bc63c54
@ -129,7 +129,7 @@ impl<AddrType: std::fmt::Display> State<AddrType> {
|
|||||||
counter!(
|
counter!(
|
||||||
"ping_counter",
|
"ping_counter",
|
||||||
make_ping_count_labels(domain_name, "dropped"),
|
make_ping_count_labels(domain_name, "dropped"),
|
||||||
);
|
).increment(1);
|
||||||
for_delete.push(*k);
|
for_delete.push(*k);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -191,7 +191,7 @@ impl<'a> PacketHandler<Icmpv6Packet, Ipv6Addr> for &'a mut State<Ipv6Addr> {
|
|||||||
counter!(
|
counter!(
|
||||||
"ping_counter",
|
"ping_counter",
|
||||||
make_ping_count_labels(domain_name, "unreachable")
|
make_ping_count_labels(domain_name, "unreachable")
|
||||||
);
|
).increment(1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -301,7 +301,7 @@ where
|
|||||||
);
|
);
|
||||||
match self.send_to_destination(dest, identifier, sequence) {
|
match self.send_to_destination(dest, identifier, sequence) {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
counter!("ping_counter", make_ping_count_labels(domain_name, "err"),);
|
counter!("ping_counter", make_ping_count_labels(domain_name, "err"),).increment(1);
|
||||||
error!(
|
error!(
|
||||||
domain=domain_name, %dest, err=?e,
|
domain=domain_name, %dest, err=?e,
|
||||||
"Error sending. Trying again later",
|
"Error sending. Trying again later",
|
||||||
@ -394,7 +394,7 @@ where
|
|||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!(err = ?e, "Error receiving packet");
|
error!(err = ?e, "Error receiving packet");
|
||||||
counter!("ping_counter", make_ping_count_labels("unknown", "err"),);
|
counter!("ping_counter", make_ping_count_labels("unknown", "err"),).increment(1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user