Skip to content

docs(sdk): SDK data inventory for App Privacy / Play Data safety (O20) - #816

Merged
unjica merged 3 commits into
developfrom
docs/o20-sdk-privacy
Oct 19, 2026
Merged

unjica merged 3 commits into
developfrom
docs/o20-sdk-privacy

Conversation

@unjica

@unjica unjica commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

Draft docs page /docs/sdk-privacy listing what the browser and React Native SDKs collect/send, with proposed Apple App Privacy and Google Play Data safety mappings.

Do not merge until Sanja approves every privacy claim below.

Related: #470 (scrub shipped), #476 (custom regex open). No new issues.

Privacy claims checklist (approve each line)

  1. Browser/RN ingest uses configurable ingestUrl + paths /ingest/error|event|batch|session — packages/telemetry-core/src/index.ts:114, :161-162, :188, :463-474, :515-518, :626.
  2. Auth is Authorization: Bearer (or X-API-Key); Content-Type JSON; no cookies — packages/telemetry-core/src/index.ts:441-448.
  3. anonymous_id is a random UUID; browsers persist it in localStorage key tacko_telemetry_anon_id — packages/telemetry-core/src/index.ts:47, :86-103.
  4. Session payload may include session_id, user_id, user_email, anonymous_id, sdk_version, country, device_browser, device_os, started_at, ended_at — packages/telemetry-core/src/index.ts:165-182.
  5. user_id / user_email are set only via optional identify — packages/telemetry-core/src/index.ts:420-424.
  6. Error payload includes message, optional stack/context, optional user_id/session_id plus envelope fields — packages/telemetry-core/src/index.ts:626-631.
  7. Browser auto-captures window.onerror and unhandledrejection — packages/telemetry-core/src/index.ts:304-365.
  8. RN installs ErrorUtils global handler; JS-only (no native crash reporter) — packages/telemetry-react-native/src/index.ts:34-65.
  9. RN package depends only on @telemetry-tracker/core + peer react-native (adds no OS permissions / no native module) — packages/telemetry-react-native/package.json:36-41.
  10. Device hints are UA family (device_browser/device_os) and locale-derived country (not GPS) — packages/telemetry-core/src/device-context.ts:3-7, :27-50.
  11. Browser Web Vitals default on (webVitals !== false) — packages/telemetry-core/src/index.ts:388-391, :410-413.
  12. Client piiScrub is opt-in (default off when omitted/false) — packages/telemetry-core/src/index.ts:127-132, :527-531.
  13. Client scrub redacts sensitive named query params; does not strip all query strings — packages/telemetry-core/src/pii-scrub.ts:25-26, :84.
  14. Server ingest PII scrub is on by default / best-effort; self-host can disable via TELEMETRY_INGEST_PII_SCRUB — docs/PII-SCRUBBING.md:1-3, :30.
  15. Next.js createOnRequestError strips query/hash from path and does not copy request headers — packages/telemetry-next/src/server.ts:19, :119-123.
  16. ErrorOccurrence / Event / Session Prisma models have no IP column; IP used for rate limiting via clientIpKeyGenerator — apps/api/prisma/schema.prisma:575-599, :627-649, :651+; apps/api/src/lib/client-ip.ts:64-88.
  17. No breadcrumbs ingest in these SDKs — docs/PII-SCRUBBING.md:22 (and absence of breadcrumb APIs in core).
  18. Docs explicitly refuse absolute claims (“no PII”, “EU-only”, complete scrubbing) — apps/dashboard/app/docs/sdk-privacy/page.tsx (What we do not claim).
  19. Play “Users can request deletion” marked UNVERIFIED on the page — same file (Google Play table).
  20. Apple Location: do not declare Precise Location; locale country is coarse — same file + device-context.ts:27-35.

Test plan

  • CI build/lint green on this draft
  • Visual check of /docs/sdk-privacy after preview deploy (optional)
  • Sanja approves claim list before ready-for-review / merge

…acy labels

Public /docs/sdk-privacy page for Apple App Privacy and Google Play Data
safety, verified against current SDK and ingest code. Draft for founder
review of every privacy claim before merge.
@unjica
unjica marked this pull request as ready for review October 19, 2026 07:39
Telemetry Tracker Bot added 2 commits October 19, 2026 09:43
@unjica
unjica merged commit cdcaf6b into develop Oct 19, 2026
7 checks passed
@unjica
unjica deleted the docs/o20-sdk-privacy branch October 19, 2026 07:49
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