@@ -674,7 +674,9 @@ impl AnalyzerContext {
674674 let global_concurrency_controller = self . lib_ctx . global_concurrency_controller . clone ( ) ;
675675 let result_fut = async move {
676676 trace ! ( "Start building executor for source op `{op_name}`" ) ;
677- let executor = executor. await ?;
677+ let executor = executor
678+ . await
679+ . with_context ( || format ! ( "Preparing for source op: {op_name}" ) ) ?;
678680 trace ! ( "Finished building executor for source op `{op_name}`" ) ;
679681 Ok ( AnalyzedImportOp {
680682 executor,
@@ -700,10 +702,7 @@ impl AnalyzerContext {
700702 ReactiveOpSpec :: Transform ( op) => {
701703 let input_field_schemas =
702704 analyze_input_fields ( & op. inputs , op_scope) . with_context ( || {
703- format ! (
704- "Failed to analyze inputs for transform op: {}" ,
705- reactive_op. name
706- )
705+ format ! ( "Preparing inputs for transform op: {}" , reactive_op. name)
707706 } ) ?;
708707 let spec = serde_json:: Value :: Object ( op. op . spec . clone ( ) ) ;
709708
@@ -725,7 +724,7 @@ impl AnalyzerContext {
725724 async move {
726725 trace ! ( "Start building executor for transform op `{op_name}`" ) ;
727726 let executor = executor. await . with_context ( || {
728- format ! ( "Failed to build executor for transform op: {op_name}" )
727+ format ! ( "Preparing for transform op: {op_name}" )
729728 } ) ?;
730729 let enable_cache = executor. enable_cache ( ) ;
731730 let behavior_version = executor. behavior_version ( ) ;
@@ -784,7 +783,7 @@ impl AnalyzerContext {
784783 local_field_ref,
785784 op_scope : analyzed_op_scope_fut
786785 . await
787- . with_context ( || format ! ( "Analyzing foreach op: {op_name}" ) ) ?,
786+ . with_context ( || format ! ( "Preparing for foreach op: {op_name}" ) ) ?,
788787 name : op_name,
789788 concurrency_controller : concur_control:: ConcurrencyController :: new (
790789 & concur_control_options,
@@ -920,7 +919,7 @@ impl AnalyzerContext {
920919 let export_context = data_coll_output
921920 . export_context
922921 . await
923- . with_context ( || format ! ( "Analyzing export op: {op_name}" ) ) ?;
922+ . with_context ( || format ! ( "Preparing for export op: {op_name}" ) ) ?;
924923 trace ! ( "Finished building executor for export op `{op_name}`" ) ;
925924 Ok ( AnalyzedExportOp {
926925 name : op_name,
@@ -1006,7 +1005,8 @@ pub async fn analyze_flow(
10061005 import_ops_futs. push (
10071006 analyzer_ctx
10081007 . analyze_import_op ( & root_op_scope, import_op. clone ( ) )
1009- . await ?,
1008+ . await
1009+ . with_context ( || format ! ( "Preparing for import op: {}" , import_op. name) ) ?,
10101010 ) ;
10111011 }
10121012 let op_scope_fut = analyzer_ctx
@@ -1059,7 +1059,8 @@ pub async fn analyze_flow(
10591059 & mut targets_analyzed_ss,
10601060 & mut declarations_analyzed_ss,
10611061 )
1062- . await ?,
1062+ . await
1063+ . with_context ( || format ! ( "Analyzing export ops for target `{target_kind}`" ) ) ?,
10631064 ) ;
10641065 analyzed_target_op_groups. push ( analyzed_target_op_group) ;
10651066 }
0 commit comments