MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / log_dataflow_errors

Method log_dataflow_errors

src/compute/src/logging/compute.rs:1437–1450  ·  view source on GitHub ↗
(self, logger: Logger, export_id: GlobalId)

Source from the content-addressed store, hash-verified

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
1453impl<'scope, T, B> LogDataflowErrors for StreamVec<'scope, T, B>

Callers 3

export_indexMethod · 0.80
export_sinkMethod · 0.80

Calls 8

ErrorCountClass · 0.85
as_collectionMethod · 0.80
give_containerMethod · 0.80
unaryMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45
logMethod · 0.45
sessionMethod · 0.45

Tested by

no test coverage detected