Skip to content
All findings

Error tracking for agents, Dec 2026: Sentry vs PostHog vs Better Stack, hands-on — Better Stack readable in ~4 s, only PostHog kept a 200-error burst, Sentry scrubs passwords

Published 2 Dec 2026

Built from these three hands-on reviews (linked below), which ran one workload unchanged: Express and FastAPI apps with a throwing route, a minified Vite page, a 200-error burst and a request full of fake secrets. Which one for which job:

  • The agent must read the error back fast: Better Stack (p50 3.89 s Express, 3.98 s FastAPI). Sentry took 13.92–15.82 s, PostHog 22.02–26.15 s.
  • Bursts must not vanish: PostHog stored 200 of 200 in all four runs. Sentry and Better Stack share the Sentry SDKs, whose default queues dropped most of it client-side.
  • Request bodies may hold passwords: Sentry, the only backend that scrubbed the password on storage. Better Stack stored it verbatim.
  • No browser at all: Sentry's agent handoff logs its CLI in headlessly. PostHog and Better Stack need a browser once.
  • Small MCP footprint: PostHog's hosted MCP is one exec tool.
  • Biggest free error quota you can see today: PostHog and Better Stack list 100,000; Sentry's own 5,000 is masked by a 14-day trial.

| Free plan, US region, client in India, 2026-12-02 | Error → readable via API, p50 / p95 s: Express; FastAPI | 200-error burst, docs config, stored per run: Express; FastAPI | Node SDK default (POST with password body, ?token=) | Source maps: frames before → after upload; Vite build time | Headless setup | Default MCP: tools / tools/list | Free errors per month, as assigned | |---|---|---|---|---|---|---|---| | Sentry Developer (on Business trial) | 15.82 / 23.71; 13.92 / 18.89 | 99, 64; 72; stats API shows 365 as client_discard; SDK queue 1,000: 200, 200 | body sent raw, password stored as [Filtered]; ?token= filtered by the SDK; IP stored | Qc, $c, el → computeTotal src/deep.js:4:25; build 59ms → 6.02s | agent handoff logs the CLI in, no browser; @sentry/wizard waits for a browser login | 76 / 309.0 KB (local sentry mcp) | 5,000 (Developer) + 995,000 trial until 2026-12-16 | | PostHog Free | 26.15 / 33.1; 22.02 / 29.69 | 200, 200; 200, 200; nothing dropped | body not sent; ?token= sent and stored; IP stored | Sh, xh, bh → computeTotal src/deep.js:4:25; build 96ms → 5.41s | wizard needs a TTY and browser OAuth (--ci unsupported); manual SDK setup works | 1 / 16.9 KB (exec, 949 tools behind it) | 100,000, no trial; usage showed 0 after 880 | | Better Stack, no card | 3.89 / 4.71; 3.98 / 4.78 | 64, 64; 52, 52; drops not shown; SDK queue 1,000: 200, 200 (at 112 s) | body sent raw, stored verbatim; ?token= filtered by the SDK; IP stored | Qc, $c, el → computeTotal src/deep.js:4:25; build 54ms → 8.38s | browser for signup and the first API token (betterstack signin is browser-only), then REST API | 30 / 67.6 KB | 100,000 listed as "Errors (Europe)" (US-only account); usage empty after 683 |

Latency = time until every read path the review polled saw the event (20 per app); poll resolution was ~2.3 s (Sentry), ~4 s (PostHog) and ~2.5 s (Better Stack). Burst counts are errors stored at the last count, 50–142 s after sending, one number per run (Sentry ran FastAPI once). Build times are Vite's own "built in" line. MCP size is the tools/list tool array, serialized the same way for all three.

Error → readable via API

Better Stack showed 39 of 40 errors on the second poll; its SQL path alone had a median of 2.8 s. Sentry's issue search and event list agreed. PostHog with flushAt: 1 / flush_at=1 was still 24.81 / 19.91 s, so its delay is server-side ingestion.

The 200-error burst and silent client-side drops

With the docs config, @sentry/node stops at its transport buffer of 64 and sentry-sdk at its queue of 100 (shared with the transactions from traces_sample_rate=1.0). No log line, no 429. Sentry's billing page still said "Total Dropped 0". Better Stack has no drop view and its usage page was not live. Fix on both: transportOptions: { bufferSize: 1000 } (Node) and transport_queue_size=1000 (Python). Better Stack's ingest closes the connection after each send, so Python drained at about 2 events/s (112 s vs 34 s on Sentry). posthog-node and posthog (Python) kept every error.

What each SDK sends by default, and who scrubs it

  • @sentry/node 11.22.0 sends the raw JSON body, password and card included, plus user.ip_address from X-Forwarded-For; it filters cookie, Authorization and ?token=. Sentry's default Data Scrubber stored password and card as [Filtered]. Better Stack stored the body as sent; a per-app VRL program (del(.request.data)) removes it.
  • sentry-sdk 3.0.2 sends no body; the client IP goes in request.env and frame locals.
  • posthog-node 6.2.3 sends no body or headers but puts the full URL, ?token= included, in $current_url, and PostHog stored it. Strip it in before_send. posthog 8.7.2 leaves the query string out.
  • All three stored the client IP (PostHog: anonymize_ips: false; Sentry: scrubIPAddresses: false).

Source maps

All three resolved computeTotal at src/deep.js:4:25 after a build-time upload, and all three plugins deleted the .map files. Better Stack reuses @sentry/bundler-plugins with its own URL. PostHog's docs Vite snippet contains TypeScript (process.env.POSTHOG_API_KEY!) and fails with `[PARSE_ERROR] Expected , or } but found ! `. Sentry's upload needs an org token the handoff login can't create (one device-code approval).

Headless setup (wizard/CLI)

Sentry: curl -fsSL https://cli.sentry.dev/install | SENTRY_HANDOFF=<code> bash installed and logged in the CLI in 21 s; @sentry/wizard 9.1.0 --non-interactive still waits for a browser login, even with SENTRY_AUTH_TOKEN. PostHog's wizard 3.1.0 exits with PHW_CLI_INTERACTIVE_REQUIRED without a TTY, its suggested --ci "is not currently supported in published builds"; after a browser OAuth it also added OpenTelemetry packages and 11 insights. Better Stack has no wizard; after the browser-made first API token, POST /api/v4/applications returns the DSN parts in 0.7 s. Browser apps: posthog-js drops Playwright traffic as bots, and browser exceptions stay off until autocapture_exceptions_opt_in is set.

API search traps

  • PostHog: GET .../error_tracking/issues/?search= ignores search and returns every issue. Use POST /api/projects/<id>/query/ with ErrorTrackingQuery (it needs orderBy).
  • Better Stack: errors?query= matches only a pattern's current message, which lags; it found the marker in 6 of 20 (Node) and 8 of 20 (Python) cases. Query exceptions with SQL.
  • Sentry: MCP search_issues with no LLM key ran is:unresolved over 30 days in all projects without saying so.

MCP tool count and size

PostHog: 1 tool, 949 behind it, found a marker in 3 calls. Better Stack: 30 tools; ?toolsets=errors (the docs' "fewer tools" option) gives 55 tools and drops query, so stacks can't be read. Sentry: 76 tools from the local sentry mcp (52 with --skills inspect); hosted mcp.sentry.dev is OAuth-only.

Free quota and enforcement: mostly pending

No vendor was pushed to its cap. Sentry's 5,000-error Developer cap is untestable until the trial ends on 2026-12-16 (pending). PostHog lists 100,000 exceptions with a 100,000 billing limit; usage read 0 after 880 (re-check pending). Better Stack's only errors line is labelled Europe on a US-only account; usage was empty after 683 (pending).

Evidence: `repro/NOTES.md` maps each cell and prose figure to its source file. python3 repro/build_table.py rebuilds the table from repro/sources/. Outdated if the Sentry SDK queue defaults change, Better Stack adds scrubbing, PostHog's wizard gets a headless mode, or any trial or quota changes.

Connected posts