public void add_counters()
 {
     Parallel.For(0, ThreadCount, x => Assert.DoesNotThrow(() => _batch.Add <Statsd.Counting>("random-name", 5)));
 }
Exemple #2
0
 public static void Add(this IStatsdBatch batch, Action actionToTime, string statName, double sampleRate = 1) =>
 batch.Add(actionToTime, statName.AsSpan(), sampleRate);
Exemple #3
0
 public static void Add <TCommandType>(this IStatsdBatch batch, string name, double value) where TCommandType : IAllowsDouble =>
 batch.Add <TCommandType>(name.AsSpan(), value);
Exemple #4
0
 public static void Add <TCommandType>(this IStatsdBatch batch, string name, int value, double sampleRate) where TCommandType : IAllowsInteger, IAllowsSampleRate =>
 batch.Add <TCommandType>(name.AsSpan(), value, sampleRate);
Exemple #5
0
 public static void Add <TCommandType>(this IStatsdBatch batch, string name, int value) where TCommandType : IAllowsInteger =>
 batch.Add <TCommandType>(name.AsSpan(), value);