Method RecordFailure(Activity?, Exception)
Marks the span failed by exception: status and an
OpenTelemetry exception event — the shape the route spans use, so a failed call shows red on the
transport span, not only on the route above it.
public static void RecordFailure(this Activity? activity, Exception exception)