Skip to content

PostHog error tracking for review-enrichment (keep the discovery-index mirror in lockstep) #8290

Description

@JSONbored

Part of epic #8286 (Phase 1 — Errors).

Current state

review-enrichment/src/sentry.ts — the review-enrichment service's error tracking, the module packages/discovery-index/src/sentry.ts explicitly mirrors ("deliberately mirrors review-enrichment/src/sentry.ts's shape"). Same DSN-gated init, scrub-then-capture, fingerprint/level/tag structure, plus its own scripts/validate-sentry-release.mjs / scripts/validate-sourcemaps.mjs release validators.

Deliverables

  • Same swap as the discovery-index sub-issue, kept deliberately in lockstep with it (the two modules mirror each other today; keep the mirror after the swap so future maintenance stays one mental model): $exception via posthog-node, redaction preserved, release/sourcemap validators repointed at PostHog artifacts.
  • Points at the loopover-owned project (Provision a loopover-owned Posthog project for the hosted fleet #7875) under this service's own secret injection.
  • Sentry path stays in parallel until the decommission gate.
  • Tests: parity with the existing sentry tests for this service.

Boundaries

  • Do this after (or together with) the discovery-index swap and copy its reviewed shape — don't let the two mirrors drift.

Resources

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions