public virtual MetricTracker Metric(string metricName, IDictionary <string, string> properties = null) { properties = properties ?? new Dictionary <string, string>(); foreach (var p in _properties) { if (!properties.ContainsKey(p.Key)) { properties[p.Key] = p.Value; } } var metric = new MetricTracker(_sinks, metricName, properties); return(metric); }
public TimingMetricTracker(MetricTracker metricTracker) { _metricTracker = metricTracker; }