void (long lookupFinishedAtMs) { EVENT_STUB_INDEX_LOOKUP_ENTRIES_BY_KEY.log( project, FIELD_INDEX_ID.with(indexId.getName()), FIELD_UP_TO_DATE_CHECK_DURATION_MS.with( indexValidationFinishedAtMs > 0 ? indexValidationFinishedAtMs - lookupStartedAtMs : 0), FIELD_STUB_TREE_DESERIALIZING_DURATION_MS.with( stubTreesDeserializingStarted > 0 ? lookupFinishedAtMs - stubTreesDeserializingStarted : 0), FIELD_LOOKUP_DURATION_MS.with(lookupFinishedAtMs - lookupStartedAtMs), FIELD_LOOKUP_FAILED.with(lookupFailed), FIELD_TOTAL_KEYS_INDEXED_COUNT.with(totalKeysIndexed), FIELD_LOOKUP_RESULT_ENTRIES_COUNT.with(lookupResultSize) ); }