public sendTelemetryEvent()

in src/common/baseTelemetryReporter.ts [276:282]


	public sendTelemetryEvent(eventName: string, properties?: TelemetryEventProperties, measurements?: TelemetryEventMeasurements): void {
		if (this.userOptIn && eventName !== "") {
			properties = { ...properties, ...this.getCommonProperties() };
			const cleanProperties = this.cloneAndChange(properties, (_key: string, prop: string) => this.anonymizeFilePaths(prop, this.firstParty));
			this.telemetryAppender.logEvent(`${this.extensionId}/${eventName}`, { properties: this.removePropertiesWithPossibleUserInfo(cleanProperties), measurements: measurements });
		}
	}