/// <summary>
 /// Sends gauge metric into a <see cref="IStatsdClient"/>
 /// </summary>
 /// <param name="self">An instance of the <see cref="IStatsdClient"/></param>
 /// <param name="name">Name of a metric</param>
 /// <param name="stopwatch">An instance of <see cref="LeanStopwatch"/> which will be used to determine time interval</param>
 public static IStatsdClient LogTiming(this IStatsdClient self, string name, LeanStopwatch stopwatch)
 {
     self.LogTiming(stopwatch.Elapsed(name));
     return(self);
 }
Beispiel #2
0
 /// <summary>
 /// Sends gauge metric into a <see cref="IStatsdClient"/>
 /// </summary>
 /// <param name="name">Name of a metric</param>
 /// <param name="value">Time interval in milliseconds</param>
 public static void LogTiming(string name, int value)
 {
     _statsdClient.LogTiming(name, value);
 }
 /// <summary>
 /// Sends gauge metric into a <see cref="IStatsdClient"/>
 /// </summary>
 /// <param name="self">An instance of the <see cref="IStatsdClient"/></param>
 /// <param name="name">Name of a metric</param>
 /// <param name="value">Time interval in milliseconds</param>
 public static IStatsdClient LogTiming(this IStatsdClient self, string name, int value)
 {
     self.LogTiming(new Timing(name, value));
     return(self);
 }