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:

  1. Open browser DevTools Console (F12) to see log messages
  2. Click buttons to trigger errors (red = unhandled, yellow = handled)
  3. Check console for logs with correct source locations
  4. Go to New Relic Browser → JS errors to verify sourcemaps

Expected in New Relic:

Key Question:

Do errors caught in try-catch or React Query's onError callback still report to New Relic with sourcemaps?