/// <summary> /// Log a raw metric that will not get aggregated on the server. /// </summary> /// <param name="client">The statsd client instance.</param> /// <param name="name">The metric name.</param> /// <param name="value">The metric value.</param> /// <param name="epoch">(optional) The epoch timestamp. Leave this blank to have the server assign an epoch for you.</param> public static void LogRaw(this IStatsd client, string name, int value, long?epoch = null) { client.LogRawAsync(name, value, epoch).ConfigureAwait(false).GetAwaiter().GetResult(); }
public static void LogRaw(this IStatsd client, string name, int value, long?epoch = null) { client.LogRawAsync(name, value, epoch)?.Wait(); }