(self, logger: Logger, export_id: GlobalId)
| 1435 | D: Clone + 'static, |
| 1436 | { |
| 1437 | fn log_dataflow_errors(self, logger: Logger, export_id: GlobalId) -> Self { |
| 1438 | self.inner |
| 1439 | .unary(Pipeline, "LogDataflowErrorsCollection", |_cap, _info| { |
| 1440 | move |input, output| { |
| 1441 | input.for_each(|cap, data| { |
| 1442 | let diff = data.iter().map(|(_d, _t, r)| *r).sum::<Diff>(); |
| 1443 | logger.log(&ComputeEvent::ErrorCount(ErrorCount { export_id, diff })); |
| 1444 | |
| 1445 | output.session(&cap).give_container(data); |
| 1446 | }); |
| 1447 | } |
| 1448 | }) |
| 1449 | .as_collection() |
| 1450 | } |
| 1451 | } |
| 1452 | |
| 1453 | impl<'scope, T, B> LogDataflowErrors for StreamVec<'scope, T, B> |
no test coverage detected