search: record inferred file extensions in metrics
Created by: rvantonder
Current prometheus metrics record the file extension for structural search, or 'inferred' if lang:
is not specified. I'd like to know what gets inferred, which is based on the file extension of the first includePattern
, if it exists. This PR adds the logic to record inferred languages/extensions.