1
0
Fork 0
mirror of synced 2024-09-11 15:08:05 +12:00
budibase/packages/server/src/ddApm.ts

11 lines
312 B
TypeScript

import apm from "dd-trace"
// enable APM if configured
if (process.env.DD_APM_ENABLED) {
console.log("Starting dd-trace")
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",
})
}