def emit_sub_stream_metrics(sub_stream): if sub_stream.is_selected(): singer.metrics.log(LOGGER, Point(metric_type='counter', metric=singer.metrics.Metric.record_count, value=sub_stream.count, tags={'endpoint':sub_stream.stream.tap_stream_id})) sub_stream.count = 0
def _pop(self): log(self.logger, Point('progress', self.metric, self.value, self.tags)) self.last_log_time = time.time()