We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d6b823 commit 052bdaaCopy full SHA for 052bdaa
packages/dd-trace/src/guardrails/telemetry.js
@@ -14,11 +14,8 @@ if (!process.env.DD_INJECTION_ENABLED) {
14
module.exports = function () {}
15
}
16
17
-if (!process.env.DD_TELEMETRY_FORWARDER_PATH) {
18
- module.exports = function () {}
19
-}
20
-
21
-if (!fs.existsSync(process.env.DD_TELEMETRY_FORWARDER_PATH)) {
+var telemetryForwarderPath = process.env.DD_TELEMETRY_FORWARDER_PATH
+if (typeof telemetryForwarderPath !== 'string' || !fs.existsSync(telemetryForwarderPath)) {
22
23
24
0 commit comments