Commit edcafbd
fix(observability): match minified React error format in PostHog filter (SHA-2377) (#220)
SHA-2240 (commit 25b7d89) shipped suppressHydrationWarning at the DOM
level + IGNORED_PATTERNS for unminified hydration error messages. But
production builds minify React errors as "Minified React error #N;
visit https://react.dev/errors/N..." — the form PostHog actually
captures from production users.
PostHog 14d audit (2026-05-08): docs continued to ingest ~125 React #418
hits across 84 distinct users after the SHA-2240 fix — all in the
minified format that the existing patterns don't match.
Two changes:
1. Add /Minified React error #(310|418|423|425)/ to IGNORED_PATTERNS so
production-minified React errors are filtered alongside the
un-minified dev-build versions.
2. Generalize the prism_bash_exports special-case to /prism_\w+_exports/
plus /Export 'prism_/ + /local binding for export 'prism_/. Same root
cause (PrismJS-based browser extensions injecting into the page); the
audit showed prism_python_exports also firing alongside prism_bash.
Pure analytics-filter change; no runtime behavior modified. Underlying
hydration suppression from SHA-2240 still in place at the DOM layer.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c7a759e commit edcafbd
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
| |||
0 commit comments