The README contains this example:
#[ic_cdk_macros::update(name = "doThis")]
pub async fn do_this() -> () {
canistergeek_ic_rust::monitor::collect_metrics();
canistergeek_ic_rust::logger::log_message(String::from("do_this"));
// rest part of the your method...
}
Is there any reason not to do something like this instead?
#[ic_cdk_macros::update(name = "doThis")]
pub async fn do_this() -> () {
canistergeek_ic_rust::logger::log_message(String::from("do_this"));
// rest part of the your method...
canistergeek_ic_rust::monitor::collect_metrics();
}