Skip to content

Commit 05c8080

Browse files
committed
Merge branch 'main' into hander_large_blob
2 parents d8c0305 + 5a35385 commit 05c8080

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libs/client-api/src/http.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ impl Client {
806806
.collect();
807807

808808
let mut framed_data = Vec::new();
809+
let mut size_count = 0;
809810
for task in compression_tasks {
810811
let compressed = task.await??;
811812
// The length of a u32 in bytes is 4. The server uses a u32 to read the size of each data frame,
@@ -816,7 +817,13 @@ impl Client {
816817
let size = compressed.len() as u32;
817818
framed_data.extend_from_slice(&size.to_be_bytes());
818819
framed_data.extend_from_slice(&compressed);
820+
size_count += size;
819821
}
822+
event!(
823+
tracing::Level::INFO,
824+
"create batch collab with size: {}",
825+
size_count
826+
);
820827
let body = Body::wrap_stream(stream::once(async { Ok::<_, AppError>(framed_data) }));
821828
let resp = self
822829
.http_client_with_auth_compress(Method::POST, &url)

0 commit comments

Comments
 (0)