Skip to content

feat: usage_data_opt_out also drops /report_event [Better data collection] - #53

Open
PetrDlouhy wants to merge 2 commits into
claude/usage-report-routefrom
claude/report-event-opt-out
Open

feat: usage_data_opt_out also drops /report_event [Better data collection]#53
PetrDlouhy wants to merge 2 commits into
claude/usage-report-routefrom
claude/report-event-opt-out

Conversation

@PetrDlouhy

Copy link
Copy Markdown
Contributor

What

The usage_data_opt_out shared setting from #52 gated only /report_usages. /report_event — the login-funnel telemetry, and the locked-asset event coming in Blendkit#2296's follow-up — bypassed the user's choice. Now both routes drop silently (200, nothing forwarded, no task) when the setting is on.

The rule this encodes

Everything on /report_event and /report_usages is optional by definition; anything the service itself needs must never ride these routes. Gating by route instead of per event name means there is no list to keep in sync and a reviewer can verify the boundary in one line. Documented in the route description (apispec, docs regenerated).

Tests

TestReportEventHandlerDropsEventsWhenOptedOut mirrors the /report_usages test: opt-out set in a temp settings store, handler returns 200, fake server receives nothing. Full suite, go vet, gofmt clean.

Stacked on #52 (claude/usage-report-route); merges after it.

🤖 Generated with Claude Code

Telemetry is optional by definition: with the shared setting on, the
route now answers 200 and forwards nothing, exactly like /report_usages.
This puts the login funnel events under the same preference; anything the
service itself needs must never ride this route.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@PetrDlouhy PetrDlouhy self-assigned this Sep 11, 2026
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