src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts/SettingsEditor2/reportFilteringUsed
class SettingsEditor2:	private reportFilteringUsed(results: ISearchResult[]): void {
		type SettingsEditorFilterEvent = {
			'durations.nlpResult': number | undefined;
			'counts.nlpResult': number | undefined;
			'counts.filterResult': number | undefined;
			'requestCount': number | undefined;
		};
		type SettingsEditorFilterClassification = {
			'durations.nlpResult': { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; 'comment': 'How long the remote search provider took, if applicable.' };
			'counts.nlpResult': { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; 'comment': 'The number of matches found by the remote search provider, if applicable.' };
			'counts.filterResult': { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; 'comment': 'The number of matches found by the local search provider, if applicable.' };
			'requestCount': { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; 'comment': 'The number of requests sent to Bing, if applicable.' };
			owner: 'rzhao271';
			comment: 'Tracks the number of requests and performance of the built-in search providers';
		};

		const nlpResult = results[SearchResultIdx.Remote];
		const nlpMetadata = nlpResult?.metadata;

		const duration = {
			nlpResult: nlpMetadata?.duration
		};

		// Count unique results
		const counts: { nlpResult?: number; filterResult?: number } = {};
		const filterResult = results[SearchResultIdx.Local];
		if (filterResult) {
			counts['filterResult'] = filterResult.filterMatches.length;
		}

		if (nlpResult) {
			counts['nlpResult'] = nlpResult.filterMatches.length;
		}

		const requestCount = nlpMetadata?.requestCount;

		const data = {
			'durations.nlpResult': duration.nlpResult,
			'counts.nlpResult': counts['nlpResult'],
			'counts.filterResult': counts['filterResult'],
			requestCount
		};

		this.telemetryService.publicLog2<SettingsEditorFilterEvent, SettingsEditorFilterClassification>('settingsEditor.filter', data);
	}