Skip to content

Add telemetry ingestion backend and production deployment - #24

Merged
Icemap merged 1 commit into
mainfrom
agent/telemetry-backend
Jul 24, 2026
Merged

Icemap merged 1 commit into
mainfrom
agent/telemetry-backend

Conversation

@Icemap

@Icemap Icemap commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add the product-owned telemetry ingestion backend, including strict event validation, bounded in-memory batching, TiDB storage, personless PostHog forwarding, health and private metrics endpoints, and Docker Compose/Caddy deployment.

Add CI coverage for the backend binary and a manually triggered production deployment workflow using the telemetry-production GitHub Environment. Runtime application credentials remain only in the server-local .env; GitHub stores only SSH deployment credentials.

Update the telemetry specification, backend deployment design, README, and agent guidance to match the implementation. The default sink timeout is 5 seconds based on observed PostHog ingestion latency during pre-deployment validation.

Validation

  • go test -count=1 ./...
  • go test -count=1 -race ./internal/telemetrybackend
  • go vet ./...
  • Docker Compose configuration validation
  • ARM64 Docker image build
  • Live TiDB schema creation, insert, read, and cleanup
  • Live HTTP ingestion returning 202 Accepted
  • Live batch flush with successful TiDB and PostHog sink writes

@ti-chi-bot ti-chi-bot Bot added the size/XXL label Jul 24, 2026
@Icemap
Icemap merged commit 284a78d into main Jul 24, 2026
2 checks passed
@Icemap
Icemap deleted the agent/telemetry-backend branch July 24, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant