Skip to Content
GuidesEvent types

Event types

Catalog items use eventType from RollbarEventTypes. Each type maps to Rollbar behavior as follows.

Log levels

Event typeRollbar behavior
RollbarEventTypes.CRITICALrollbar.critical(message, err?, extra?)
RollbarEventTypes.ERRORrollbar.error(message, err?, extra?)
RollbarEventTypes.WARNINGrollbar.warning(message, extra)
RollbarEventTypes.INFOrollbar.info(message, extra)
RollbarEventTypes.DEBUGrollbar.debug(message, extra)

The catalog item id is used as the Rollbar message (title). All pluginData.RollbarPlugin.properties are sent as extra (custom data) in Rollbar.

Person (identify / clear)

Event typeRollbar behavior
RollbarEventTypes.IDENTIFYrollbar.configure({ payload: { person: { id, username?, email? } } })
RollbarEventTypes.CLEAR_PERSONrollbar.configure({ payload: { person: { id: null } } })

For IDENTIFY, pass in pluginData.RollbarPlugin.properties:

  • id (required) — person identifier. If missing, the plugin falls back to distinct_id or user_id.
  • username (optional)
  • email (optional)

Example:

await rollbarService.publish("USER_SIGNED_IN", { pluginData: { RollbarPlugin: { properties: { id: user.id, username: user.name, email: user.email, }, }, }, }); // On logout await rollbarService.publish("USER_SIGNED_OUT", { pluginData: { RollbarPlugin: { properties: {} } }, });
Last updated on