Skip to main content

Observability

In one line: Five layers, each answering a different question, all on free tiers at ₹0/month — Sentry (errors), BetterStack (uptime + status + jobs + logs), PostHog (product analytics), Microsoft Clarity (heatmaps + replay), and Checkly (synthetic monitoring).
Royal Glow uses five distinct observability layers, each answering a different question. Total monthly cost: ₹0.

The five layers

Layer 1 — Error Monitoring. Free tier: 5,000 errors/month — more than sufficient at launch.Sentry captures errors from both Cloudflare Workers (edge) and Render (Node.js/Payload CMS). Source maps are uploaded during build so errors point to original TypeScript lines, not minified output.What Sentry captures:
  • Unhandled API route exceptions
  • Client-side React errors (via Error Boundaries)
  • Edge Worker errors (Cloudflare)
  • Performance traces (slow DB queries, slow API responses)
Alert rules:What is NOT sent to Sentry:
  • Business rule violations (4xx errors) — these are expected
  • Validation errors (400) — these are expected
  • Rate limit exceeded (429) — these are expected

Complete Stack Summary

Upgrade Path

All upgrades are triggered by growth — not required at launch. All third-party browser scripts (PostHog, Clarity, Meta Pixel) load only after explicit cookie consent and only when their keys are configured. The cookie consent banner is a custom two-tier implementation — no paid consent management tool needed.
Last modified on June 29, 2026

Related topics

Architecture