message: sync_leaper/metrics: record sync duration even if sync leap fails
diff: @@ -242,11 +242,17 @@ impl SyncLeaper {
  Some(activity) => {
  let result = activity.status();
  if result.active() == false {
  - if matches!(result, LeapStatus::Received { .. }) {
  + match result {
  + LeapStatus::Received { .. } | LeapStatus::Failed { .. } => {
  self.metrics
  .sync_leap_duration
  .observe(activity.leap_start.elapsed().as_secs_f64());
  }
  + LeapStatus::Idle | LeapStatus::Awaiting { .. } => {
  + // should be unreachable
  + error!(status = %result, ?activity, "sync leaper has inconsistent status");
  + }
  + }
  self.leap_activity = None;
  }
  result
  