Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public TimingMetricTracker(MetricTracker metricTracker)
 {
     _metricTracker = metricTracker;
 }