docs(fumadocs): document SDK/CLI telemetry and opt-outs - #144
Closed
tembo[bot] wants to merge 1 commit into
Closed
tembo[bot] wants to merge 1 commit into
tembo[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Requesting review from @leoisadev1 who has experience with the following files modified in this PR:
|
Member
leoisadev1
added a commit
that referenced
this pull request
Jul 6, 2026
* docs: telemetry page, Homebrew install tab, convex typed returns Ports the real gaps from the Tembo draft PRs (#134, #136, #144) onto post-#128 main: - New /docs/telemetry page covering collected events, error-report redaction, storage/transport, CI detection, and every opt-out, verified against packages/email-sdk/src/telemetry.ts and core.ts. Adds the telemetry option to the client reference and a meta.json entry. - Homebrew tab on the install page plus a pointer from the CLI reference, matching Formula/email-sdk.rb and the release automation (which opens a formula-bump PR rather than pushing to main). - One-line notes that convex-email status/listEvents returns are typed and the ConvexEmailDoc/ConvexEmailEventDoc/ConvexEmailDeliveryStatus types are exported. Generated-By: PostHog Code Task-Id: ec2538f2-5c80-4142-b4b3-b1a53394862e * docs(agents): live-check scripts also load .env after .env.local Generated-By: PostHog Code Task-Id: ec2538f2-5c80-4142-b4b3-b1a53394862e
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #141 shipped PostHog telemetry, error tracking, and the new
telemetry?: booleanclient option, but the docs site had no telemetry page and the client reference did not list the option. This PR closes that gap with a dedicated, scannable Telemetry page verified againstpackages/email-sdk/src/telemetry.ts,core.ts, andcli.ts— no fabricated behavior.Documentation-only change.
Docs added / updated
apps/fumadocs/content/docs/telemetry.mdx— top-level page (parallel to Authentication), registered incontent/docs/meta.jsonafterauthentication. Covers:client created,email sent,email batch sent,cli command run) with their exact property names.delivery_pathvalues (single/bulk_native/bulk_expanded) and the one-event-per-send()no-double-counting guarantee.~/.config/email-sdk/telemetry.json,XDG_CONFIG_HOME), write-only key, US PostHog host, fire-and-forget 3s timeout, read-only-FS behavior.EMAIL_SDK_TELEMETRY=0/false/off,DO_NOT_TRACK=1/true,telemetry: false, andNODE_ENV=test.apps/fumadocs/content/docs/reference/client.mdx— added thetelemetryoption to thecreateEmailClientoptionsTypeTableand a cross-link to the new page.Codepaths covered
packages/email-sdk/src/telemetry.ts—createTelemetry, opt-out precedence (isTelemetryDisabled), CI detection (detectCiVendor), redaction (redactErrorMessage,sanitizeErrorName,sanitizeFrameFilename), dedupe/caps, state storage.packages/email-sdk/src/core.ts—client created,email sent(incl.delivery_path,used_recipient_variables,used_send_at), andemail batch sentproperty shapes;telemetry: falsehandling.packages/email-sdk/src/cli.ts—cli command runproperties,source: "cli"tagging, and flush-before-exit.Key knowledge gaps addressed
telemetryclient option was undocumented in the client reference.Validation
bun run types:checkinapps/fumadocs(runsfumadocs-mdx && tsc --noEmit): passes — the new MDX compiles and frontmatter validates.Callout(fromdefaultMdxComponents) andTypeTableare globally registered insrc/components/mdx.tsx; theActivityicon resolves vialucide-react.bun run buildwas not run (it fetches Notra blog posts over the network); the MDX compilation covered bytypes:checkis the relevant check for this content change.🤖 Generated by the Tembo documentation agent, triggered by the merge of #141.