public virtual void LogMetric(string name, string status, string nameValuePairs) { string type = string.Empty; IMetric metric = NewMetric(type, name); if (!string.IsNullOrWhiteSpace(nameValuePairs)) { metric.AddData(nameValuePairs); } metric.Status = status; metric.Complete(); }
public virtual void LogMetric(String name, String status, String nameValuePairs, string messageTreeId) { String type = string.Empty; IMetric metric = NewMetric(type, name, messageTreeId); if (!string.IsNullOrWhiteSpace(nameValuePairs)) { metric.AddData(nameValuePairs); } metric.Status = status; metric.Complete(CallContextManager.MessageTreeId); }