-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
In #471, the error reporting notifiers are called synchronously in notify:
react_on_rails_pro/packages/node-renderer/src/shared/errorReporter.ts
Lines 35 to 44 in 78f78f5
| notifiers.forEach((notifier) => { | |
| try { | |
| notifier(msg, tracingContext); | |
| } catch (e) { | |
| log.error( | |
| // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition | |
| `An error tracking notifier failed: ${(e as Error).message ?? e}\nStack:\n${(e as Error).stack}`, | |
| ); | |
| } | |
| }); |
We could possibly improve performance a bit by scheduling the calls to happen later with async or setImmediate/setTimeout. Though it's only called on error, which should be rare, and the notifiers should be fast.
Metadata
Metadata
Assignees
Labels
No labels