File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -806,6 +806,7 @@ impl Client {
806
806
. collect ( ) ;
807
807
808
808
let mut framed_data = Vec :: new ( ) ;
809
+ let mut size_count = 0 ;
809
810
for task in compression_tasks {
810
811
let compressed = task. await ??;
811
812
// 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 {
816
817
let size = compressed. len ( ) as u32 ;
817
818
framed_data. extend_from_slice ( & size. to_be_bytes ( ) ) ;
818
819
framed_data. extend_from_slice ( & compressed) ;
820
+ size_count += size;
819
821
}
822
+ event ! (
823
+ tracing:: Level :: INFO ,
824
+ "create batch collab with size: {}" ,
825
+ size_count
826
+ ) ;
820
827
let body = Body :: wrap_stream ( stream:: once ( async { Ok :: < _ , AppError > ( framed_data) } ) ) ;
821
828
let resp = self
822
829
. http_client_with_auth_compress ( Method :: POST , & url)
You can’t perform that action at this time.
0 commit comments