Skip to content

Commit 1c4b2ae

Browse files
authored
fix(ext/telemetry): defer Otel initialization in bootstrap (#681)
1 parent 76c2581 commit 1c4b2ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/runtime/js/bootstrap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,6 @@ globalThis.bootstrapSBEdge = (opts, ctx) => {
613613
});
614614
}
615615

616-
bootstrapOtel(otel);
617-
618616
ObjectDefineProperty(globalThis, "Deno", readOnly(denoOverrides));
619617

620618
setNumCpus(1); // explicitly setting no of CPUs to 1 (since we don't allow workers)
@@ -636,6 +634,8 @@ globalThis.bootstrapSBEdge = (opts, ctx) => {
636634
if (ObjectHasOwn(main, "default")) {
637635
registerDeclarativeServer(main.default);
638636
}
637+
638+
bootstrapOtel(otel);
639639
});
640640

641641
/// DISABLE SHARED MEMORY AND INSTALL MEM CHECK TIMING

0 commit comments

Comments
 (0)