public static void logRefreshSession(boolean recursive, int lfsRoots, int arcRoots, int otherRoots, boolean cancelled,
                                       long wait, long duration, int tries) {
    if (duration >= DURATION_THRESHOLD_MS) {
      EVENT_REFRESH_SESSION.log(
        FIELD_REFRESH_RECURSIVE.with(recursive),
        FIELD_REFRESH_LOCAL_ROOTS.with(lfsRoots),
        FIELD_REFRESH_ARCHIVE_ROOTS.with(arcRoots),
        FIELD_REFRESH_OTHER_ROOTS.with(otherRoots),
        FIELD_REFRESH_CANCELLED.with(cancelled),
        FIELD_WAIT_MS.with(wait),
        DurationMs.with(duration),
        FIELD_REFRESH_TRIES.with(tries));
    }
  }
public static void logRefreshSession(boolean recursive, int lfsRoots, int arcRoots, int otherRoots, boolean cancelled,
                                       long wait, long duration, int tries)