module Sentry::Rails::Breadcrumb::ActiveSupportLogger
def add(name, started, _finished, _unique_id, data)
def add(name, started, _finished, _unique_id, data) Sentry.get_current_scope.breadcrumbs.record do |crumb| crumb.data = data crumb.category = name crumb.timestamp = started.to_i end end
def detach
def detach ::ActiveSupport::Notifications.unsubscribe(@subscriber) end
def inject
def inject @subscriber = ::ActiveSupport::Notifications.subscribe(/.*/) do |name, started, finished, unique_id, data| add(name, started, finished, unique_id, data) end end