pub type SpanFieldHook = Box<dyn for<'v> Fn(&'static Metadata<'static>, &str, &'v str) -> Option<Cow<'v, str>> + Send + Sync>;Expand description
Decides what is stored for one span field value: None drops the field, Some keeps the
returned value.
Arguments are the span’s callsite metadata, the field name and the value as text (the Debug
form for non-string values).
Aliased Type§
pub struct SpanFieldHook(/* private fields */);