Fixed issue that 'value' param should be optional for record_metric.