예제 #1
0
 /** Creates a new instance of the counter. */
 DoubleCounter(MonitorConfig config, Clock clock) {
   // This class will reset the value so it is not a monotonically increasing value as
   // expected for type=COUNTER. This class looks like a counter to the user and a gauge to
   // the publishing pipeline receiving the value.
   super(config.withAdditionalTag(DataSourceType.NORMALIZED));
   count = new StepLong(0L, clock);
 }