diff --git a/src/pyodide/internal/python.ts b/src/pyodide/internal/python.ts index 3fd959690a9e..5dab51585ed3 100644 --- a/src/pyodide/internal/python.ts +++ b/src/pyodide/internal/python.ts @@ -62,10 +62,10 @@ async function prepareWasmLinearMemory(Module: Module): Promise { mountSitePackages(Module, SITE_PACKAGES.rootInfo); entropyMountFiles(Module); Module.noInitialRun = !SHOULD_RESTORE_SNAPSHOT; - preloadDynamicLibs(Module); - Module.removeRunDependency('dynlibs'); + enterJaegerSpan('preload_dynamic_libs', () => preloadDynamicLibs(Module)); + enterJaegerSpan('remove_run_dependency', () => Module.removeRunDependency('dynlibs')); if (SHOULD_RESTORE_SNAPSHOT) { - restoreSnapshot(Module); + enterJaegerSpan("restore_snapshot", () => restoreSnapshot(Module)); // Invalidate caches if we have a snapshot because the contents of site-packages // may have changed. simpleRunPython(