Improve analytics identity and failure diagnostics - #1733
Draft
r3dbars wants to merge 6 commits into
Draft
Conversation
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.
Why
Sentry reported failures with zero impacted users, capture degradation obscured hard errors, and PostHog health snapshots frequently lacked outcome metadata. This change makes usage and failures traceable across both vendors and the existing support-diagnostics flow.
Product Impact
What changed
The local metadata ledger supports daily digests and support diagnostics. This PR does not add a customer-facing usage or health dashboard.
The QA bench also references the checked-in 1.1.59 release fixture instead of the removed 1.1.58 fixture.
How I checked it
bash build.sh --no-open; app build and performance budget passed, with launch to interactive at 882.0 ms against a 3000 ms budget.bash run-tests.sh: 13,509 passed, zero failures.Regression coverage includes identity migration, encoded person traits, shared taxonomy, content exclusion, opt-out with preference observation, unexpected no-audio failure deduplication, local midnight/DST, same-day re-opt-in, offline count/byte pressure, and UUID/timestamp preservation across HTTP retries.
Privacy and limits
Risk Review
Agent handoff
COORD_DONE: GREEN | https://github.com/r3dbars/transcripted/pull/1733 | analytics and support diagnostics; no customer usage panel | cleanup: none | human review and candidate ingestion verification remain | local build/tests and independent review passed | lanes used: Codex=implementation plus independent read-only reviewer; Claude/Local/Windows=skipped for bounded scope | review draft PR; do not merge automatically