Skip to content

Commit cc679b2

Browse files
committed
refactor(cli): give the live runtime record reader its own span
1 parent 6a06471 commit cc679b2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎apps/server/src/serverRuntimeState.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ export const readPersistedServerRuntimeState = Effect.fn(
198198
* credentials to the recorded origin: a killed server leaves its record behind, and
199199
* another process may own its port by now.
200200
*/
201-
export const readLiveServerRuntimeState = (path: string) =>
201+
export const readLiveServerRuntimeState = Effect.fn(
202+
"serverRuntimeState.readLiveServerRuntimeState",
203+
)((path: string) =>
202204
readPersistedServerRuntimeState(path).pipe(
203205
Effect.map(Option.filter((state) => isProcessAlive(state.pid))),
204-
);
206+
),
207+
);

0 commit comments

Comments
 (0)