pub fn error(span: &Span, status: &str, error: Option<&dyn Debug>)
Set the status of a span to Error.
Error
If error is provided, it will be recorded as an attribute on the span.
error