Return error from function SendMetric