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: trueSee 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.
Sending custom events
Section titled “Sending custom events”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})Sending logs from your infrastructure
Section titled “Sending logs from your infrastructure”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.