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