Repository navigation
docs(telemetry): opt out with the telemetry commands, not a text editor - #29976
Conversation
|
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe documentation directs users to telemetry commands for preference changes. It describes user config ownership, command behavior, reset effects, installation identity preservation, and environment-variable opt-out guidance. ChangesTelemetry documentation
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Section 3 required the config path and the environment variables to stay put. The operator overruled that: the prisma-next naming goes everywhere, with no fallback, no dual-write and no migration, because this is semver zero and retiring that binary is the project's whole purpose. The spec now states the two costs rather than leaving them implied. Every stored preference and installation id at the old path is abandoned, so an existing opt-out reverts to the default and the backend sees its population turn over once; and the file stops being shared with the ORM's binary until that one ports onto the engine. Both were weighed and accepted. Also records that the first-run notice no longer offers hand-editing as an opt-out route, and that prisma/prisma's telemetry page keeps the old names until the binary it documents actually changes — the hand-editing half of that ruling did not have to wait and is open as prisma/orm#29976. Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
prisma-next
@prisma/orm-extension-arktype-json
@prisma/orm-extension-middleware-cache
@prisma/orm-extension-paradedb
@prisma/orm-extension-pgvector
@prisma/orm-extension-postgis
@prisma/orm-extension-supabase
@prisma/orm-family-mongo
@prisma/orm-family-sql
@prisma/orm-framework
@prisma/orm-mongo
@prisma/orm-postgres
@prisma/orm-sqlite
@prisma/orm-target-mongo
@prisma/orm-target-postgres
@prisma/orm-target-sqlite
@prisma/orm-toolchain
commit: |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/Telemetry.md`:
- Around line 102-108: The Telemetry documentation should clarify the
installation ID lifecycle: update the first-run and reset descriptions so they
state that the first enabled command sending a telemetry event mints the ID,
unless the `telemetry enable` command has already created it.
In `@skills/prisma-8/references/quickstart.md`:
- Line 183: Update the telemetry paragraph around “Telemetry is opt-out” to
clarify that the one-time stderr notice and telemetry transmission occur only
for the first command that resolves telemetry as enabled and would send it,
including init. Exclude telemetry commands, disabled invocations, and CI
invocations from the claim that every command notifies and sends, while
preserving the existing opt-out configuration and documentation references.
- Line 183: Update the telemetry paragraph in the quickstart documentation to
replace the plain-text docs/Telemetry.md reference with a clickable Markdown
link targeting ../../../docs/Telemetry.md or the canonical published
documentation URL, while preserving the surrounding wording.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro Plus
Run ID: 551dc15b-8e7e-46fc-bb0d-44bfca5742df
📒 Files selected for processing (2)
docs/Telemetry.mdskills/prisma-8/references/quickstart.md
size-limit report 📦
|
4e78e5b to
6138ad6
Compare
…text editor `prisma-next telemetry enable | disable | status` have existed the whole time. docs/Telemetry.md still offered hand-editing config.json as an equal alternative in three places, and told users they could pre-create the file before ever running the CLI. The file itself stays documented — where it lives, what the fields mean, what `disable` writes into it — because `telemetry status` prints that path and readers need to understand what they are looking at. What goes is the instruction to write to it. The pre-create-the-file case (fresh image, provisioning script, container build) is now answered by the environment variables, which already work before any config file exists. The same hand-edit clause in the prisma-8 skill quickstart goes with it. No path, environment-variable name, first-run notice wording, or command prefix changed. Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
`lint:legacy-name` allows a bare `prisma-next` only when the character after it is neither a word character nor a hyphen, which is why the two command spellings in this sentence pass and the anchor slug `#the-prisma-next-telemetry-command` did not. Point the same sentence at "How to opt out (or back in)" instead — the parent section of the commands, and a slug that carries no legacy name. Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
7fb0150 to
cd0b4d7
Compare
Linked issue
n/a — small docs change. Prompted by the engine-side telemetry work now underway; see the note at the end about what this PR deliberately does not pre-document.
At a glance
docs/Telemetry.md, "Flipping your choice", before:After:
Decision
prisma-next telemetry enable | disable | statushave been in the CLI the whole time. They exist so nobody has to open a JSON file to change their telemetry preference. The telemetry page was still teaching the JSON file as an equal route in three places — one of them told readers they could pre-create the file before ever running the CLI.Hand-editing is now documented as what the file is, not as something you should do. The distinction the page holds throughout: describing the file is useful reference material; recommending that users write to it is not.
telemetry statusprints the file's path, so a reader who lands on it needs to know what the fields mean.Nothing about where the file lives, what it contains, or how the fields resolve is removed.
How it fits together
statusprints the resolved path, and the section that follows describes the contents so you can read them. The path bullets, the JSON samples, and theenableTelemetry/installationIdfield definitions are all untouched.enableTelemetrywhen you make an explicit choice withenable/disable.keep "enableTelemetry": false in itas an alternative to runningdisable.prisma-next telemetrycommand" now says plainly why it exists, and notes thatenable/disablewrite the preference atomically and preserve every other field in the file — which is the concrete reason to prefer them over an editor.disablewrites, and the paragraph telling readers to drop a pre-madeconfig.jsonon disk is replaced. Provisioning a machine where the CLI has never run is a real need, and the environment variables already serve it — they work before any config file exists and suppress the first-run notice too.The
skills/prisma-8quickstart carried the same hand-edit clause in its telemetry callout; it goes the same way, keeping the per-user vs.prisma-next.config.tsdistinction it was making.Reviewer notes
prisma-nextcommand prefix changed. Token counts for each of those are identical before and after; the only increase isprisma-next telemetry, which gains two mentions because the commands are now the route."enableTelemetry": falseyourself. That block is quoted verbatim from the shipped binary and is left exactly as-is, so the page keeps matching what users actually see on stderr. The notice's wording is one of the things changing on the engine side.prismarather thanprisma-next, the opt-out variable becomesPRISMA_DISABLE_TELEMETRY, and the first-run notice drops its hand-edit clause. None of that has shipped in theprisma-nextCLI this page describes, so documenting it now would make the page wrong for the binary people are running. It lands with the port.#how-to-opt-out-or-back-in. It first pointed at the commands section's own slug, andlint:legacy-namewas right to reject that: the rule allows a bareprisma-nextonly when the character after it is neither a word character nor a hyphen, and#the-prisma-next-telemetry-commandis followed by-telemetry-command. That is also why the two command spellings in the same sentence pass. Every existing heading and anchor is unchanged, so#2-the-stored-preferenceand#1-environment-variables-runtime-onlystill resolve from their inbound links.skills/prisma-8/references/quickstart.mdis one sentence, included so the ruling isn't applied in only half the places a reader meets it. Easy to drop if you'd rather keep this todocs/Telemetry.md.Testing performed
pnpm lint:legacy-name(node scripts/lint-legacy-name.mjs) — passes, on the exact tree pushed.pnpm lint:docs(scripts/validate-package-readmes.mjs) — passes; its warnings are pre-existing and concern mongo package READMEs untouched here.docs/Telemetry.mdresolves to a heading that exists.PRISMA_NEXT_DISABLE_TELEMETRY,DO_NOT_TRACK,%APPDATA%,$XDG_CONFIG_HOME,prisma-next.config.ts, the notice block) againstmain: byte-identical.docs/.Skill update
skills/prisma-8/references/quickstart.md— the telemetry callout's opt-out routes now match the page. No CLI surface, flag, config field, or error code changed, so no other skill content is affected.Checklist
git commit -s) per the DCO.TML-NNNN: <sentence-case title>form — no Linear ticket; follows thedocs(<scope>):form used by recent docs PRs (docs(adr): ADR 245 adopts typed nextActions (S4 follow-up) #29958, docs(adr): ADR 239 amendment — findings as diagnostics in completed envelopes, typed nextActions (S4) #29957, docs(adr): ADR 245 — errors structured at origin; one ok discriminator on results #29925).Summary by CodeRabbit