@@ -746,7 +746,7 @@ def _handle_staging_operation(
746746 session_id_hex = self .connection .get_session_id_hex (),
747747 )
748748
749- @log_latency ()
749+ @log_latency (StatementType . SQL )
750750 def _handle_staging_put (
751751 self , presigned_url : str , local_file : str , headers : Optional [dict ] = None
752752 ):
@@ -786,7 +786,7 @@ def _handle_staging_put(
786786 + "but not yet applied on the server. It's possible this command may fail later."
787787 )
788788
789- @log_latency ()
789+ @log_latency (StatementType . SQL )
790790 def _handle_staging_get (
791791 self , local_file : str , presigned_url : str , headers : Optional [dict ] = None
792792 ):
@@ -814,7 +814,7 @@ def _handle_staging_get(
814814 with open (local_file , "wb" ) as fp :
815815 fp .write (r .content )
816816
817- @log_latency ()
817+ @log_latency (StatementType . SQL )
818818 def _handle_staging_remove (
819819 self , presigned_url : str , headers : Optional [dict ] = None
820820 ):
@@ -828,7 +828,7 @@ def _handle_staging_remove(
828828 session_id_hex = self .connection .get_session_id_hex (),
829829 )
830830
831- @log_latency (StatementType .SQL )
831+ @log_latency (StatementType .QUERY )
832832 def execute (
833833 self ,
834834 operation : str ,
@@ -919,7 +919,7 @@ def execute(
919919
920920 return self
921921
922- @log_latency (StatementType .SQL )
922+ @log_latency (StatementType .QUERY )
923923 def execute_async (
924924 self ,
925925 operation : str ,
0 commit comments