Skip to content

fix: print the telemetry notice before any event is sent - #2

Merged
jwmoss merged 1 commit into
mainfrom
fix/telemetry-notice-before-send
Sep 12, 2026
Merged

jwmoss merged 1 commit into
mainfrom
fix/telemetry-notice-before-send

Conversation

@jwmoss

@jwmoss jwmoss commented Sep 12, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up to #1 from the telemetry collector security audit.

  • The stderr notice now prints in beginUsage, before the command runs and before any event leaves the machine.
  • It prints in every output mode (--json, --plain, --quiet, redirected output) until the user saves a preference with datatf telemetry enable or disable. Previously a --json user with no saved preference was never informed while events were still sent.
  • Docs and changelog updated to match.

Test plan

  • make check
  • TestTelemetryNoticeUntilPreferenceSaved covers all four output modes, a failed command, and silence after a saved preference

The notice now runs in beginUsage, ahead of the command, and prints in
every output mode until the user saves a preference. Redirected, --json,
--plain, and --quiet sessions were never informed before.
@jwmoss
jwmoss merged commit e0cd109 into main Sep 12, 2026
2 checks passed
@jwmoss
jwmoss deleted the fix/telemetry-notice-before-send branch September 12, 2026 01:05
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.

1 participant