I am using @sentry/node
within a CLI application. When using simple code like the following I do not get any messages/errors sent off in scenarios where the application exits quickly (like printing help information).
Sentry.captureMessage('Hello, world!');
Sentry.captureException(new Error('Testing Stuff'));
I have been able to get the errors to report by adding setTimeout
s to the code, but that was to just verify I have the right configuration. Is there a way to guarantee, or invoke, that the buffer gets cleared of queued messages?