Send metrics and events from Ruby and Rails apps to Honeybadger Insights
Metrics
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