From 261e60d3bc087a8c7614341acfb70be8d8c677bc Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 5 Jan 2024 15:08:43 +0000 Subject: [PATCH] Enable dd-trace logging in QA to try and figure out why user info isn't being added to traces. --- packages/server/src/ddApm.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/server/src/ddApm.ts b/packages/server/src/ddApm.ts index 6c9b8aa289..f0f3ec6055 100644 --- a/packages/server/src/ddApm.ts +++ b/packages/server/src/ddApm.ts @@ -3,5 +3,9 @@ import apm from "dd-trace" // enable APM if configured if (process.env.DD_APM_ENABLED) { console.log("Starting dd-trace") - apm.init() + apm.init({ + // @ts-ignore for some reason dd-trace types don't include this options, + // even though it's spoken about in the docs. + debug: process.env.DD_ENV === "qa", + }) }