Skip to content

Send logs and events from Elixir apps to Honeybadger Insights

When enabled, Honeybadger automatically instruments your Elixir/Phoenix application to send application events to Honeybadger Insights. This is the easiest way to get started with Insights and logging. To get started, enable Insights in your app configuration:

config :honeybadger,
insights_enabled: true

See our automatic instrumentation guide to learn more. You can also add extra context data to events, filter events to remove PII, and sample events to reduce the amount of data sent to Honeybadger.

You can send custom events to Honeybadger Insights with the Honeybadger.event/1 and Honeybadger.event/2 functions. For example:

Honeybadger.event(%{
event_type: "user_created",
user: user.id
})
Honeybadger.event("project_deleted", %{
project: project.name
})

Honeybadger isn’t just for errors and application data! You can use our syslog, Vector, or PaaS integrations to send additional data from your infrastructure to Honeybadger Insights, where you can query, visualize, and analyze all of your production data in one place.