Skip to content

fix: honor telemetry opt-out#6635

Open
AkhilTrivediX wants to merge 1 commit into
FlowiseAI:mainfrom
AkhilTrivediX:bugfix/disable-flowise-telemetry
Open

fix: honor telemetry opt-out#6635
AkhilTrivediX wants to merge 1 commit into
FlowiseAI:mainfrom
AkhilTrivediX:bugfix/disable-flowise-telemetry

Conversation

@AkhilTrivediX

Copy link
Copy Markdown

Summary

  • honor DISABLE_FLOWISE_TELEMETRY=true before creating the PostHog client
  • add a regression test covering the opt-out when a PostHog key is configured

Root cause

DISABLE_FLOWISE_TELEMETRY was passed through the CLI and deployment configuration but was never read by the telemetry initializer. As a result, setting the documented opt-out did not prevent PostHog telemetry from being enabled when POSTHOG_PUBLIC_API_KEY was present.

Validation

  • pnpm --dir packages/server exec jest src/utils/telemetry.test.ts --runInBand
  • pnpm exec prettier --check packages/server/src/utils/telemetry.ts packages/server/src/utils/telemetry.test.ts

Fixes #6618

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the ability to disable telemetry by setting the DISABLE_FLOWISE_TELEMETRY environment variable to 'true'. It updates the Telemetry class constructor to check this variable and adds corresponding unit tests to verify the behavior, including proper cleanup of environment variables in the test suite. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DISABLE_FLOWISE_TELEMETRY is documented (.env/compose/CLI) but not read by any code — the opt-out has no effect

1 participant