@@ -12,6 +12,11 @@ use rolldown_sourcemap::SourceMap;
1212use tracing:: Instrument ;
1313
1414impl PluginDriver {
15+ #[ tracing:: instrument(
16+ level = "trace" ,
17+ target = "rolldown_plugin::plugin_driver::output_hooks::total::render_start" ,
18+ skip_all
19+ ) ]
1520 pub async fn render_start ( & self , opts : & SharedNormalizedBundlerOptions ) -> HookNoopReturn {
1621 for ( plugin_idx, plugin, ctx) in
1722 self . iter_plugin_with_context_by_order ( & self . order_by_render_start_meta )
@@ -25,6 +30,11 @@ impl PluginDriver {
2530 Ok ( ( ) )
2631 }
2732
33+ #[ tracing:: instrument(
34+ level = "trace" ,
35+ target = "rolldown_plugin::plugin_driver::output_hooks::total::banner" ,
36+ skip_all
37+ ) ]
2838 pub async fn banner ( & self , args : HookAddonArgs , mut banner : String ) -> Result < Option < String > > {
2939 for ( plugin_idx, plugin, ctx) in
3040 self . iter_plugin_with_context_by_order ( & self . order_by_banner_meta )
@@ -43,6 +53,11 @@ impl PluginDriver {
4353 Ok ( Some ( banner) )
4454 }
4555
56+ #[ tracing:: instrument(
57+ level = "trace" ,
58+ target = "rolldown_plugin::plugin_driver::output_hooks::total::footer" ,
59+ skip_all
60+ ) ]
4661 pub async fn footer ( & self , args : HookAddonArgs , mut footer : String ) -> Result < Option < String > > {
4762 for ( plugin_idx, plugin, ctx) in
4863 self . iter_plugin_with_context_by_order ( & self . order_by_footer_meta )
@@ -61,6 +76,11 @@ impl PluginDriver {
6176 Ok ( Some ( footer) )
6277 }
6378
79+ #[ tracing:: instrument(
80+ level = "trace" ,
81+ target = "rolldown_plugin::plugin_driver::output_hooks::total::intro" ,
82+ skip_all
83+ ) ]
6484 pub async fn intro ( & self , args : HookAddonArgs , mut intro : String ) -> Result < Option < String > > {
6585 for ( plugin_idx, plugin, ctx) in
6686 self . iter_plugin_with_context_by_order ( & self . order_by_intro_meta )
@@ -79,6 +99,11 @@ impl PluginDriver {
7999 Ok ( Some ( intro) )
80100 }
81101
102+ #[ tracing:: instrument(
103+ level = "trace" ,
104+ target = "rolldown_plugin::plugin_driver::output_hooks::total::outro" ,
105+ skip_all
106+ ) ]
82107 pub async fn outro ( & self , args : HookAddonArgs , mut outro : String ) -> Result < Option < String > > {
83108 for ( plugin_idx, plugin, ctx) in
84109 self . iter_plugin_with_context_by_order ( & self . order_by_outro_meta )
@@ -97,6 +122,11 @@ impl PluginDriver {
97122 Ok ( Some ( outro) )
98123 }
99124
125+ #[ tracing:: instrument(
126+ level = "trace" ,
127+ target = "rolldown_plugin::plugin_driver::output_hooks::total::render_chunk" ,
128+ skip_all
129+ ) ]
100130 pub async fn render_chunk (
101131 & self ,
102132 mut args : HookRenderChunkArgs < ' _ > ,
@@ -149,6 +179,11 @@ impl PluginDriver {
149179 Ok ( ( args. code , sourcemap_chain) )
150180 }
151181
182+ #[ tracing:: instrument(
183+ level = "trace" ,
184+ target = "rolldown_plugin::plugin_driver::output_hooks::total::augment_chunk_hash" ,
185+ skip_all
186+ ) ]
152187 pub async fn augment_chunk_hash (
153188 & self ,
154189 chunk : Arc < RollupRenderedChunk > ,
@@ -167,6 +202,11 @@ impl PluginDriver {
167202 Ok ( hash)
168203 }
169204
205+ #[ tracing:: instrument(
206+ level = "trace" ,
207+ target = "rolldown_plugin::plugin_driver::output_hooks::total::render_error" ,
208+ skip_all
209+ ) ]
170210 pub async fn render_error ( & self , args : & HookRenderErrorArgs < ' _ > ) -> HookNoopReturn {
171211 for ( plugin_idx, plugin, ctx) in
172212 self . iter_plugin_with_context_by_order ( & self . order_by_render_error_meta )
@@ -179,6 +219,11 @@ impl PluginDriver {
179219 Ok ( ( ) )
180220 }
181221
222+ #[ tracing:: instrument(
223+ level = "trace" ,
224+ target = "rolldown_plugin::plugin_driver::output_hooks::total::generate_bundle" ,
225+ skip_all
226+ ) ]
182227 pub async fn generate_bundle (
183228 & self ,
184229 bundle : & mut Vec < Output > ,
@@ -199,6 +244,11 @@ impl PluginDriver {
199244 Ok ( ( ) )
200245 }
201246
247+ #[ tracing:: instrument(
248+ level = "trace" ,
249+ target = "rolldown_plugin::plugin_driver::output_hooks::total::write_bundle" ,
250+ skip_all
251+ ) ]
202252 pub async fn write_bundle (
203253 & self ,
204254 bundle : & mut Vec < Output > ,
@@ -218,6 +268,11 @@ impl PluginDriver {
218268 Ok ( ( ) )
219269 }
220270
271+ #[ tracing:: instrument(
272+ level = "trace" ,
273+ target = "rolldown_plugin::plugin_driver::output_hooks::total::close_bundle" ,
274+ skip_all
275+ ) ]
221276 pub async fn close_bundle ( & self , args : Option < & HookCloseBundleArgs < ' _ > > ) -> HookNoopReturn {
222277 for ( plugin_idx, plugin, ctx) in
223278 self . iter_plugin_with_context_by_order ( & self . order_by_close_bundle_meta )
0 commit comments