From c9552cd0bd27e615eb58931563c51b10b65597e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Antonio=20Fern=C3=A1ndez=20de=20Alba?= Date: Mon, 28 Oct 2024 11:01:08 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Nikita Tkachenko <121111529+nikita-tkachenko-datadog@users.noreply.github.com> --- .../dd-trace/src/ci-visibility/exporters/agent-proxy/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dd-trace/src/ci-visibility/exporters/agent-proxy/index.js b/packages/dd-trace/src/ci-visibility/exporters/agent-proxy/index.js index 21dd9243e1..b9a2f67d3c 100644 --- a/packages/dd-trace/src/ci-visibility/exporters/agent-proxy/index.js +++ b/packages/dd-trace/src/ci-visibility/exporters/agent-proxy/index.js @@ -29,7 +29,7 @@ function getCanForwardDebuggerLogs (err, agentInfo) { if (err) { return false } - return agentInfo.endpoints.some(endpoint => endpoint === AGENT_DEBUGGER_INPUT) + return !err && agentInfo.endpoints.some(endpoint => endpoint === AGENT_DEBUGGER_INPUT) } class AgentProxyCiVisibilityExporter extends CiVisibilityExporter {