fix(telemetry): send feedback as plain events, not PostHog surveys

CLI and Studio feedback were emitted as `survey sent` with `$survey_*`
properties, so every rating was ingested as a PostHog survey response even
though no survey definition, targeting, or popover backs them.

Emit `cli_render_feedback` and `studio_feedback` with plain `rating` /
`comment` properties instead. Same fields, same call sites, same opt-out.
This commit is contained in:
Miguel Angel Simon Sierra
2026-07-27 16:46:51 +02:00
parent 3a0590925c
commit 597c14a887
6 changed files with 25 additions and 21 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ function normalizeComment(raw?: string): string | undefined {
/**
* Compact PostHog join keys appended to the environment string that rides
* along with the forwarded report (and therefore lands verbatim in the wild
* feedback channel): `fid` = this submission's PostHog `survey sent`
* feedback channel): `fid` = this submission's PostHog `cli_render_feedback`
* `feedback_id`; `tid` = the install's telemetry distinct_id; `renders` =
* recent `render_job_id`s (newest last, `!` suffix = the render failed).
* Together they turn a wild report into an exact telemetry lookup instead of