Send metrics and events from Ruby and Rails apps to Honeybadger Insights

Metrics

Version 5.11.0 of our gem added the ability to automatically instrument your Rails application and report a variety of metrics to Insights. More information can be found here.

Alternatively, you can use Yabeda and our Yabeda integration to collect and report metrics in your Ruby and Rails apps. Several default metrics, such as request counts, request duration, etc., will be reported automatically once you've added and configured the gems.

Events

If you have custom events you'd like to track, use version 5.5.0 or later of our gem to report those events to Insights:

ruby
# app/controllers/accounts_controller.rb class AccountsController < ApplicationController def create # Account.create(...) Honeybadger.event("Created account", account_id: account.id, account_name: account.name, plan: account.subscription.name) end end

More information about sending events to Insights from your Ruby and Rails apps can be found here.