pub fn record_error(span: &Span, err: &Error)Expand description
Record an error onto a span following the existing error.type pattern:
error.type (the framework Error variant tag), plus the
tracing-opentelemetry “special fields” otel.status_code ("ERROR")
and otel.status_message (the exception’s Display text) so that a
bridge sets real OTel span status. This mirrors Python’s
capture_exception (record_exception + set_status,
observability.py:1407-1411) as far as bare tracing fields allow —
there is no span-events API here without also taking on an SDK
dependency.