Skip to main content

start_user_span

Function start_user_span 

Source
pub fn start_user_span(
    name: &'static str,
    target: &'static str,
    fields: impl IntoIterator<Item = (&'static str, FieldValue)>,
) -> u64
Expand description

Begins a user-defined span and returns its id. Returns 0 if the dispatcher is not initialized.