error

Function error 

Source
pub fn error(span: &Span, status: &str, error: Option<&dyn Debug>)
Expand description

Set the status of a span to Error.

If error is provided, it will be recorded as an attribute on the span.