Class: Honeybadger::ActionViewSubscriber
- Inherits:
-
NotificationSubscriber
- Object
- NotificationSubscriber
- Honeybadger::ActionViewSubscriber
- Defined in:
- lib/honeybadger/notification_subscriber.rb
Constant Summary collapse
- PROJECT_ROOT =
defined?(::Rails) ? ::Rails.root.to_s : ''
Instance Method Summary collapse
Methods inherited from NotificationSubscriber
#finish, #process?, #record, #record_metrics, #start
Methods included from InstrumentationHelper
#decrement_counter, #extract_attributes, #extract_callable, #gauge, #histogram, #increment_counter, #metric_agent, #metric_attributes, #metric_instrumentation, #metric_source, #monotonic_timer, #time
Instance Method Details
#format_payload(payload) ⇒ Object
101 102 103 104 105 106 |
# File 'lib/honeybadger/notification_subscriber.rb', line 101 def format_payload(payload) { view: payload[:identifier].to_s.gsub(PROJECT_ROOT, '[PROJECT_ROOT]'), layout: payload[:layout] } end |