Issue
I enabled the captureConsoleIntegration, but now all my console.logs are being sent to Sentry as errors.
Applies To
- All SaaS Customers and Self-Hosted users
- Error Monitoring
- JS SDK
Resolution
The captureConsoleIntegration
will send all console logs to Sentry. Each one will be of a different level ('log', 'info', 'warn', 'error', 'debug', 'assert') depending on the original log level, but all of these will still take up one error event from your quota.
In order to fine tune this behavior, you can use the levels option in order to decide which specific levels of logs you actually want to track in Sentry. All other levels of logs will not be sent.