Skip to content

Commit cffbf26

Browse files
committed
Log channel container type
Logs the channel container type as part of the `ChannelsEvent`. This allows us to surface the channel container type in debug data. Signed-off-by: Moritz Hoffmann <[email protected]>
1 parent 7b91ba3 commit cffbf26

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

timely/src/dataflow/stream.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ impl<S: Scope, C: Container> StreamCore<S, C> {
6060
scope_addr: self.scope.addr().to_vec(),
6161
source: (self.name.node, self.name.port),
6262
target: (target.node, target.port),
63+
typ: std::any::type_name::<C>().to_string(),
6364
}));
6465

6566
self.scope.add_edge(self.name, target);

timely/src/logging.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ pub struct ChannelsEvent {
9191
pub source: (usize, usize),
9292
/// Target descriptor, indicating operator index and input port.
9393
pub target: (usize, usize),
94+
/// The type of data on the channel, as a string.
95+
pub typ: String,
9496
}
9597

9698
#[derive(Debug, Clone)]

0 commit comments

Comments
 (0)