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