private IEnumerable <MetricConfig> GetMetrics()
 {
     foreach (var item in _metrics)
     {
         MetricBuilder builder = new MetricBuilder().SetName(item.Key);
         item.Value(builder);
         yield return(builder.Create());
     }
 }
 private IEnumerable<MetricConfig> GetMetrics()
 {
     foreach (var item in _metrics)
     {
         MetricBuilder builder = new MetricBuilder().SetName(item.Key);
         item.Value(builder);
         yield return builder.Create();
     }
 }