Telemetry beacon to `r.promptfoo.app` still fires when `PROMPTFOO_DISABLE_TELEMETRY` is set
Summary
With PROMPTFOO_DISABLE_TELEMETRY=1 (or true) set, promptfoo still sends one
outbound POST to the hardcoded endpoint https://r.promptfoo.app/. The disable
flag correctly suppresses the PostHog client, but the raw fetch in sendEvent()
is not guarded by the disabled check, so disabling telemetry ironically triggers a
"telemetry disabled" beacon.
The endpoint is a hardcoded constant with no environment override, so there is no supported way to fully prevent the call from within configuration/env.
Version
- promptfoo
0.121.17 - Node 22
- Reproduced via
npx promptfoo eval
Expected behavior
When PROMPTFOO_DISABLE_TELEMETRY is set, promptfoo makes no telemetry-related
network call of any kind.
Actual behavior
A single POST https://r.promptfoo.app/ is attempted on the first recorded event,
carrying a feature_used / "telemetry disabled" payload. In a locked-down /
air-gapped environment this surfaces as a blocked or failed outbound connection to
r.promptfoo.app.
Steps to reproduce
- In an environment where outbound connections are observable/blocked (e.g. a default-deny network sandbox, or a proxy log).
- Set
export PROMPTFOO_DISABLE_TELEMETRY=1. - Run any eval, e.g.
npx promptfoo eval -c promptfooconfig.yaml. - Observe an outbound
POSTattempt tohttps://r.promptfoo.app/despite telemetry being disabled.
Minimal confirmation that the send path is unconditional (no eval needed), if you
want to isolate it: any code path that reaches Telemetry.record() while disabled
triggers recordTelemetryDisabled() → sendEvent() → the r.promptfoo.app
fetch.
Impact
- Privacy/trust: the documented opt-out (
PROMPTFOO_DISABLE_TELEMETRY) does not fully stop telemetry egress; disabling it actively causes a beacon. - Locked-down / air-gapped use: there is no env/config way to prevent the call,
so users in restricted environments must block it at the network layer or patch
fetch. (Related but distinct from #5808, which covers prompt/output data going toapi.promptfoo.appvia remote grading.)
Source: promptfoo/promptfoo