示例#1
0
 public MetricsTimer(DogStatsdService dogStatsd, string name, double sampleRate = 1.0, string[] tags = null)
 {
     _name      = name;
     _dogStatsd = dogStatsd;
     _stopWatch = new Stopwatch();
     _stopWatch.Start();
     _sampleRate = sampleRate;
     Tags        = new List <string>();
     if (tags != null)
     {
         Tags.AddRange(tags);
     }
 }
示例#2
0
 public DogStatsd()
 {
     _dogStatsdService = new DogStatsdService();
 }