New Relic Sourcemap Test
Click any button below to trigger an error and verify sourcemap decoding in New Relic:
Unhandled Errors (Should appear in NR)
Handled Errors (Test NR behavior)
Testing Instructions:
- Open browser DevTools Console (F12) to see log messages
- Click buttons to trigger errors (red = unhandled, yellow = handled)
- Check console for logs with correct source locations
- Go to New Relic Browser → JS errors to verify sourcemaps
Expected in New Relic:
- ✅ Unhandled errors: Should appear with full stack traces
- ❓ Handled errors: May or may not appear (testing this behavior)
- Stack traces should show original TypeScript file locations (_index.tsx)
- Line numbers should match source code
- Function names should be preserved (handleSyncError, deepFunction3, etc.)
Key Question:
Do errors caught in try-catch or React Query's onError callback still report to New Relic with sourcemaps?