Skip to content

Commit

Permalink
Add more jaeger spans in Python setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Nov 14, 2024
1 parent 12479a1 commit d9309dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pyodide/internal/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ async function prepareWasmLinearMemory(Module: Module): Promise<void> {
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(
Expand Down

0 comments on commit d9309dd

Please sign in to comment.