void (final long lookupFinishedAtMs) { final long lookupDurationMs = lookupFinishedAtMs - lookupStartedAtMs; EVENT_INDEX_ALL_KEYS_LOOKUP.log( project, FIELD_INDEX_ID.with(indexId.getName()), //indexValidationFinishedAtMs==lookupStartedAtMs if not set due to exception // => UP_TO_DATE_CHECK_DURATION_MS would be 0 in that case FIELD_UP_TO_DATE_CHECK_DURATION_MS.with(indexValidationFinishedAtMs - lookupStartedAtMs), FIELD_LOOKUP_DURATION_MS.with(lookupDurationMs), FIELD_LOOKUP_FAILED.with(lookupFailed), FIELD_TOTAL_KEYS_INDEXED_COUNT.with(totalKeysIndexed) ); }