Skip to content

Commit

Permalink
Merge pull request #3068 from cloudflare/hoodmane/more-jaeger-spans
Browse files Browse the repository at this point in the history
Add more jaeger spans in Python setup
  • Loading branch information
hoodmane authored Nov 14, 2024
2 parents 24b9a56 + d9309dd commit 2115004
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 2115004

Please sign in to comment.