Datadog - sgml/signature GitHub Wiki
RUM
| Scenario | Use `addError` | No Need for `addError` |
|------------------------------------------------|-----------------------------------------------|--------------------------------------------|
| **Custom Errors** | When logging custom business logic errors | |
| **Handled Exceptions** | When catching exceptions in your code | |
| **Promise Rejections** | When handling rejected promises | |
| **React Error Boundaries** | When logging errors caught by React error boundaries | |
| **Automatic Error Collection** | | For unhandled exceptions |
| **Unhandled Promise Rejections** | | For unhandled promise rejections |
| **Console Errors** | | For errors logged using `console.error` |
| **Network Errors** | Only if you have specific requirements to log them manually | For automatically captured network errors |