pub fn enrich_span_fn<T, F>(f: F) -> FnWrapper<F>where F: Fn(&Span, &T),
Enrich span from a function.