void (final long lookupFinishedAtMs) { EVENT_INDEX_LOOKUP_ENTRIES_BY_KEYS.log( project, FIELD_INDEX_ID.with(indexId.getName()), FIELD_UP_TO_DATE_CHECK_DURATION_MS.with( indexValidationFinishedAtMs > 0 ? indexValidationFinishedAtMs - lookupStartedAtMs : 0), FIELD_LOOKUP_DURATION_MS.with(lookupFinishedAtMs - lookupStartedAtMs), FIELD_LOOKUP_FAILED.with(lookupFailed), FIELD_LOOKUP_KEYS_OP.with(lookupOperation), FIELD_LOOKUP_KEYS_COUNT.with(lookupKeysCount), FIELD_TOTAL_KEYS_INDEXED_COUNT.with(totalKeysIndexed), FIELD_LOOKUP_RESULT_ENTRIES_COUNT.with(lookupResultSize) ); }