Function callback_layer_with_spans

Source
pub fn callback_layer_with_spans<F>(callback: F) -> CallbackLayerWithSpan
where F: Fn(&Event<'_>, Option<Vec<Map<String, Value>>>) + Send + Sync + 'static,
Expand description

Returns a simple callback layer that will call the provided callback on each relevant event and will include parent spans.