pub fn span_with_attributes( name: impl Into<String>, attributes: HashMap<String, String>, ) -> SpanGuard
Creates a span with attributes.