fn try_parse_parent_span_id()

in src/trace/propagation/decoder.rs [55:63]


fn try_parse_parent_span_id(id: &str) -> crate::Result<i32> {
    if let Ok(result) = id.parse::<i32>() {
        Ok(result)
    } else {
        Err(crate::Error::DecodePropagation(
            "failed to parse span id from parent.",
        ))
    }
}