addMeasurement method
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);
}