/// <summary> /// Log to a set /// </summary> /// <param name="client">The statsd client instance.</param> /// <param name="name">The metric name.</param> /// <param name="value">The value to log.</param> /// <remarks> /// Logging to a set is about counting the number of occurrences of each event. /// </remarks> public static void LogSet(this IStatsd client, string name, int value) { client.LogSetAsync(name, value).ConfigureAwait(false).GetAwaiter().GetResult(); }
public static void LogSet(this IStatsd client, string name, int value) { client.LogSetAsync(name, value)?.Wait(); }