File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
turbopack/crates/turbopack-ecmascript/src/references Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11use anyhow:: Result ;
22use either:: Either ;
3+ use tracing:: Instrument ;
34use turbo_rcstr:: { RcStr , rcstr} ;
45use turbo_tasks:: { ResolvedVc , ValueToString , Vc } ;
56use turbo_tasks_fs:: FileSystemPath ;
@@ -156,7 +157,17 @@ impl ModuleReference for DirAssetReference {
156157 #[ turbo_tasks:: function]
157158 async fn resolve_reference ( & self ) -> Result < Vc < ModuleResolveResult > > {
158159 let parent_path = self . source . ident ( ) . path ( ) . await ?. parent ( ) ;
159- Ok ( resolve_reference_from_dir ( parent_path, * self . path ) )
160+ let span = tracing:: trace_span!(
161+ "resolve DirAssetReference" ,
162+ pattern = display( self . path. to_string( ) . await ?)
163+ ) ;
164+ async {
165+ resolve_reference_from_dir ( parent_path, * self . path )
166+ . resolve ( )
167+ . await
168+ }
169+ . instrument ( span)
170+ . await
160171 }
161172}
162173
You can’t perform that action at this time.
0 commit comments