Skip to main content

build_span

Function build_span 

Source
pub fn build_span(
    trace_id: &str,
    span_id: &str,
    name: &str,
    start: DateTime<Utc>,
    end: DateTime<Utc>,
    attributes: Vec<(&str, &str)>,
) -> OtlpSpan
Expand description

Build an OTLP span from a tracing event.