Sending custom events
You can send your own application events to Honeybadger Insights. (For the events the package captures on its own, see Automatic instrumentation.)
Use the Honeybadger.event/1 function to send event data to the events API. A
ts field with the current timestamp will be added to the data if it isn’t
provided. You can also use Honeybadger.event/2, which accepts a string as the
first parameter and adds that value to the event_type field in the map before
being sent to the API.
Honeybadger.event(%{ event_type: "user_created", user: user.id})
Honeybadger.event("project_deleted", %{ project: project.name})