There was an error while loading. Please reload this page.
2 parents f95b5e9 + fe3b524 commit af47da3Copy full SHA for af47da3
1 file changed
observability/otel/config.ts
@@ -154,9 +154,10 @@ export const tracerIsRecording = () =>
154
155
// Register fetch logging listener here (not in patched_fetch.ts) to avoid
156
// circular dependency: deco.ts → patched_fetch.ts → otel/config.ts → deco.ts
157
+// Disabled by default due to high log volume. Enable with OTEL_LOG_OUTGOING_FETCH=true.
158
import { onFetch, parseUrlParts } from "../../utils/patched_fetch.ts";
159
-onFetch((event) => {
160
+if (Deno.env.get("OTEL_LOG_OUTGOING_FETCH") === "true") onFetch((event) => {
161
const logFn = event.error ? logger.error : logger.info;
162
const { host, path } = parseUrlParts(event.url);
163
0 commit comments