---
title: Sending custom events
description: Send custom events from Elixir applications to Honeybadger Insights for monitoring and analysis.
url: https://docs.honeybadger.io/lib/elixir/insights/sending-custom-events/
---

You can send your own application events to [Honeybadger Insights](https://docs.honeybadger.io/guides/insights/). (For the events the package captures on its own, see [Automatic instrumentation](https://docs.honeybadger.io/lib/elixir/insights/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.

```elixir
Honeybadger.event(%{
  event_type: "user_created",
  user: user.id
})


Honeybadger.event("project_deleted", %{
  project: project.name
})
```

---

## Try Honeybadger for FREE

Intelligent logging, error tracking, and Just Enough APM™ in one dev-friendly platform. Find and fix problems before users notice.

[Start free trial](https://app.honeybadger.io/users/sign_up)

[See plans and pricing](https://www.honeybadger.io/plans/)
