fix: annotate Effect log metadata (#27093)

This commit is contained in:
Aiden Cline
2026-05-12 11:31:18 -05:00
committed by GitHub
parent c7d8b0d565
commit 23f8b3eb3e
6 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export const layer = Layer.effect(
const run = Effect.gen(function* () {
const ctx = yield* InstanceState.context
yield* Effect.logInfo("bootstrapping", { directory: ctx.directory })
yield* Effect.logInfo("bootstrapping").pipe(Effect.annotateLogs("directory", ctx.directory))
// everything depends on config so eager load it for nice traces
yield* config.get()
// Plugin can mutate config so it has to be initialized before anything else.