We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7854e4 commit fc52b05Copy full SHA for fc52b05
src/compute/src/rpc/service/exchange_service.rs
@@ -165,6 +165,10 @@ impl ExchangeServiceImpl {
165
);
166
pin_mut!(select_stream);
167
168
+ let exchange_frag_send_size_metrics = metrics
169
+ .stream_fragment_exchange_bytes
170
+ .with_label_values(&[&up_fragment_id, &down_fragment_id]);
171
+
172
while let Some(r) = select_stream.try_next().await? {
173
match r {
174
Either::Left(permits_to_add) => {
@@ -188,10 +192,7 @@ impl ExchangeServiceImpl {
188
192
189
193
yield response;
190
194
191
- metrics
- .stream_fragment_exchange_bytes
- .with_label_values(&[&up_fragment_id, &down_fragment_id])
- .inc_by(bytes as u64);
195
+ exchange_frag_send_size_metrics.inc_by(bytes as u64);
196
}
197
198
0 commit comments