Skip to content

feat(analytics): report server errors to PostHog error tracking - #723

Merged
fclairamb merged 4 commits into
feat/todos-2026-10-30from
feat/todos-2026-10-30-2
Oct 30, 2026
Merged

fclairamb merged 4 commits into
feat/todos-2026-10-30from
feat/todos-2026-10-30-2

Conversation

@fclairamb

@fclairamb fclairamb commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #716: merge it first.

Closes fclairamb/solidping-business#36

What changed

  • Server errors (5xx / INTERNAL_ERROR responses, recovered panics in the HTTP, check-worker and job-worker paths) are now also sent to PostHog error tracking as $exception events when analytics is active. Sentry is unchanged and independent.
  • The dashboard sends its PostHog session and distinct ids to the API (same-origin only) so a server error links to its replay.
  • Redaction is shared with Sentry (new scrub package): no secrets, no request bodies.
  • Docs: new "Server errors (error tracking)" section in the analytics configuration page.

Gate: build, lint, Go tests and dash0 typecheck/lint/unit tests green (full Playwright not run: server-side and header-only change).

Decided by autopilot

  • None: the issue's decision comment settled the Sentry/PostHog question (both, independent).

🤖 Generated with Claude Code

…ping-business#36)

Server 5xx and recovered panics only reach Sentry; send them to PostHog
error tracking too when it is active, linked to the dashboard session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fclairamb fclairamb added autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch labels Oct 30, 2026
fclairamb and others added 3 commits October 30, 2026 20:47
Server 5xx responses and recovered panics (HTTP, check worker, job worker) are
now sent as $exception events through analytics.CaptureException, next to
Sentry, with the dashboard's session/distinct id headers. Credential redaction
moves to a shared scrub package.

Closes fclairamb/solidping-business#36

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…PostHog error tracking

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@fclairamb
fclairamb marked this pull request as ready for review October 30, 2026 19:51
@fclairamb
fclairamb merged commit e3fbde8 into feat/todos-2026-10-30 Oct 30, 2026
5 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-10-30-2 branch October 30, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant