method DiagnosticsCollector.prototype.recordMetric DiagnosticsCollector.prototype.recordMetric(metric: string,value: number,unit: string,dimensions?: Record<string, string>,): void Records a performance metric Parameters metric: string value: number unit: string optional dimensions: Record<string, string> Return Type void