| Index: client/third_party/infra_libs/ts_mon/common/metric_store.py
|
| diff --git a/client/third_party/infra_libs/ts_mon/common/metric_store.py b/client/third_party/infra_libs/ts_mon/common/metric_store.py
|
| index 4d21feeabd964d1a1a1354f0f77bbab14eb355d9..1675bf0fe9f8299fd9aa95b279dc63718ae4892a 100644
|
| --- a/client/third_party/infra_libs/ts_mon/common/metric_store.py
|
| +++ b/client/third_party/infra_libs/ts_mon/common/metric_store.py
|
| @@ -257,13 +257,15 @@ class InProcessMetricStore(MetricStore):
|
| # generator's consumer) modifies them while we're iterating.
|
| with self._thread_lock:
|
| values = copy.copy(self._values)
|
| + end_time = self._time_fn()
|
|
|
| for name, metric_values in values.iteritems():
|
| if name not in self._state.metrics:
|
| continue
|
| start_time = metric_values.start_time
|
| for target, fields_values in metric_values.values.iter_targets():
|
| - yield target, self._state.metrics[name], start_time, fields_values
|
| + yield (target, self._state.metrics[name], start_time, end_time,
|
| + fields_values)
|
|
|
| def set(self, name, fields, target_fields, value, enforce_ge=False):
|
| with self._thread_lock:
|
|
|