addMeasurement method

  1. @override
void addMeasurement(
  1. Measurement measurement
)
override

Add measurement to the measurements stream.

Implementation

@override
void addMeasurement(Measurement measurement) {
  // timestamp this sampling
  if (samplingConfiguration is PersistentSamplingConfiguration) {
    (samplingConfiguration as PersistentSamplingConfiguration).lastTime =
        DateTime.now().toUtc();
  }
  super.addMeasurement(measurement);
}