Issue
I noticed that some of my events have event.type
set to error
and some event.type
set to default
. Can I manually define this value?
Applies To
- All SaaS Customers
- Error Monitoring
Resolution
This value depends on how you are capturing those events. Events captured with Sentry.captureException()
will always have event.type
as error
, while events captured with Sentry.captureMessage()
will have event.type
as default
. The default
event type is essentially assigned to all sentry events (and issues created from them) that aren’t exceptions or errors.
Unfortunately, it is not possible to change the event type, because this is information added on the server side. Even if you were to try to change it with something like beforeSend
, the event would be dropped as invalid.
Therefore, the only way to control the event type is through the way you capture it.