@devries-cameron20 / t3code Mirror · read-only / commits / d2329add05
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

fix(relay): sample Workers Logs at 1% (#40004)

Julius Marminge committed Nov 20, 2026 at 16:10 UTC d2329add05ff061a709ac2948b5ff5596fe28f41
1 file changed +7
infra/relay/src/worker.ts
+7
@@ -126,6 +126,13 @@ export const layer = Api.make(
126 // to PlanetScale `us-west` the request pays that distance once.
127 placement: { region: "aws:us-west-2" },
128 domain: relayPublicDomain,
129 + // Workers Logs bills per GB, and every request, queue batch, and DO call is
130 + // an invocation log. Axiom traces carry the full detail; keep a sample for
131 + // crashes and limit errors that never export a span.
132 + observability: {
133 + enabled: true,
134 + logs: { enabled: true, invocationLogs: true, headSamplingRate: 0.01 },
135 + },
136 })),
137 Effect.orDie,
138 ),