pub type StatsHandler = Box<dyn FnMut(String, EndpointStats) -> Value + Send + Sync + 'static>;
pub struct StatsHandler(/* private fields */);