File tree Expand file tree Collapse file tree 4 files changed +173
-118
lines changed
codecov_cli/services/upload Expand file tree Collapse file tree 4 files changed +173
-118
lines changed Original file line number Diff line number Diff line change 22import json
33import logging
44import typing
5+ import sys
56import zlib
67from typing import Any , Dict
78
@@ -124,8 +125,10 @@ def send_upload_data(
124125 )
125126 put_url = resp_json_obj ["raw_upload_location" ]
126127
127- with sentry_sdk .start_span (name = "upload_sender_storage" ):
128- logger .debug ("Sending upload to storage" )
128+ with sentry_sdk .start_span (name = "upload_sender_storage" ) as storage_span :
129+ payload_size = sys .getsizeof (reports_payload )
130+ storage_span .set_data ("payload_size" , payload_size )
131+ logger .debug (f"Sending upload ({ payload_size } bytes) to storage" )
129132 resp_from_storage = send_put_request (put_url , data = reports_payload )
130133
131134 return resp_from_storage
Original file line number Diff line number Diff line change 11[project ]
22name = " codecov-cli"
3- version = " 11.2.5 "
3+ version = " 11.2.6 "
44description = " Codecov Command Line Interface"
55readme = " README.md"
66license-files = [" LICENSE" ]
@@ -17,7 +17,7 @@ dependencies = [
1717 " PyYAML==6.*" ,
1818 " responses==0.21.*" ,
1919 " sentry-sdk==2.*" ,
20- " test-results-parser==0.6.0 " ,
20+ " test-results-parser==0.6.1 " ,
2121]
2222
2323[dependency-groups ]
You can’t perform that action at this time.
0 commit comments