Skip to content

Send telemetry to edge.archcore.ai - #32

Closed
ivklgn wants to merge 2 commits into
mainfrom
analytics/edge-ingest-host
Closed

ivklgn wants to merge 2 commits into
mainfrom
analytics/edge-ingest-host

Conversation

@ivklgn

@ivklgn ivklgn commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Why

ph.archcore.ai — the host install.sh, install.ps1 and the CLI binary all report to — spent months returning 404 DEPLOYMENT_NOT_FOUND. Its Vercel deployment went away with the landing site's move to GitHub Pages, and nothing failed: every beacon got a 404 nobody read.

It is also a name PostHog itself flags. Its guidance lists ph alongside analytics, tracking, telemetry and posthog as subdomain prefixes content blockers target — on the one host whose entire purpose is to stay unblocked.

Both are fixed by edge.archcore.ai, a PostHog managed reverse proxy that is now live and verified end to end (POST /i/v0/e/200 {"status":"Ok"} from a real browser).

What changes

  • install.sh:30 and install.ps1:20https://edge.archcore.ai.
  • internal/telemetry/telemetry.go defaultEndpointhttps://edge.archcore.ai/i/v0/e/, plus a comment recording why the old host cannot simply be deleted.
  • The two endpoint assertions in internal/telemetry/telemetry_test.go.

go build ./... and go test ./internal/telemetry/ pass.

Why ph.archcore.ai stays alive

defaultEndpoint has no environment override, so a released binary reports to whatever host it was built with, for the rest of its life. ph.archcore.ai is therefore kept as a second managed proxy on the same PostHog project until builds carrying this change have propagated. Deleting it now would silence every already-installed CLI.

After merging

A release is needed for this to reach users. The landing repository re-syncs install.sh and install.ps1 on its next deploy, and only then can the installer host check there be flipped from MODE: warn to a hard gate.

Full context and the cutover checklist: analytics-host-must-reach-posthog.adr.md in archcore-ai/landing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TJ1vhqTmechbRGqMmhuBEH

ivklgn and others added 2 commits September 7, 2026 09:37
ph.archcore.ai is on the list of subdomain prefixes PostHog itself names as
targeted by content blockers, alongside analytics, tracking and telemetry. It
also spent months dead — its Vercel deployment went away with the landing site's
move to GitHub Pages, and every beacon from here got a 404 nobody saw. Both are
fixed by moving to a neutral name behind a PostHog managed reverse proxy.

defaultEndpoint has no environment override, so a released binary reports to
whatever host it was built with, forever. ph.archcore.ai therefore stays alive
as a second proxy on the same project until builds carrying this change have
propagated; the comment records why, so the next person does not delete it.

Not shipped until the CNAMEs answer — see the cutover checklist in
analytics-host-must-reach-posthog.adr.md in archcore-ai/landing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TJ1vhqTmechbRGqMmhuBEH
Three .archcore documents still named ph.archcore.ai as the ingestion host.
The beacon ADR also listed "resolves to Vercel, unreliable in Russia" as a
hypothetical drawback — that risk had already fired: the deployment behind that
host was deleted with the landing site's move to GitHub Pages and every beacon
got a 404 for months. Recorded as what happened, with the CI check that now
prevents it, rather than as a risk still ahead of us.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TJ1vhqTmechbRGqMmhuBEH
@ivklgn

ivklgn commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Схлопнуто в e33df77 напрямую в main. Diff ветки к main пустой — закрываю как дубль.

@ivklgn ivklgn closed this Sep 7, 2026
@ivklgn
ivklgn deleted the analytics/edge-ingest-host branch September 7, 2026 07:50
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