Skip to main content

flow_end

Macro flow_end 

Source
macro_rules! flow_end {
    ($category:expr, $name:expr, $flow_id:expr $(, $key:expr => $val:expr)*) => { ... };
}
Expand description

Convenience macro for the flow_end function.

Flow events must be enclosed in a duration event.

Example:

let flow_id = 1234;
{
    duration!("foo", "step_3");
    flow_end!("foo", "bar", flow_id, "x" => 5, "y" => "boo");
}
const FOO: &'static str = "foo";
const BAR: &'static str = "bar";
let flow_id = 1234;
{
    duration!("foo", "step_3");
    flow_end!("foo", "bar", flow_id);
}