Class: Honeybadger::ActiveSupportCacheMultiSubscriber
- Inherits:
-
NotificationSubscriber
- Object
- NotificationSubscriber
- Honeybadger::ActiveSupportCacheMultiSubscriber
- Defined in:
- lib/honeybadger/notification_subscriber.rb
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
#expand_cache_keys_from_payload(data) ⇒ Object
87 88 89 90 91 92 93 94 95 |
# File 'lib/honeybadger/notification_subscriber.rb', line 87 def (data) return unless data data = data.keys if data.is_a?(Hash) Array(data).map do |k| ::ActiveSupport::Cache.(k) end end |
#format_payload(payload) ⇒ Object
81 82 83 84 85 |
# File 'lib/honeybadger/notification_subscriber.rb', line 81 def format_payload(payload) payload[:key] = (payload[:key]) payload[:hits] = (payload[:hits]) payload end |