123456789_123456789_123456789_123456789_123456789_

Class: Rails::StructuredEventSubscriber

Do not use. This class is for internal use only.

Constant Summary

::ActiveSupport::StructuredEventSubscriber - Inherited

DEBUG_CHECK

Class Attribute Summary

Class Method Summary

Instance Attribute Summary

Instance Method Summary

::ActiveSupport::StructuredEventSubscriber - Inherited

#call,
#emit_debug_event

Like emit_event, but only emits when the event reporter is in debug mode.

#emit_event

Emit a structured event via event.notify.

#silenced?, #handle_event_error

::ActiveSupport::Subscriber - Inherited

Constructor Details

This class inherits a constructor from ActiveSupport::StructuredEventSubscriber

Instance Method Details

#deprecation(event)

[ GitHub ]

  
# File 'railties/lib/rails/structured_event_subscriber.rb', line 7

def deprecation(event)
  emit_event("rails.deprecation",
    message: event.payload[:message],
    callstack: event.payload[:callstack],
    gem_name: event.payload[:gem_name],
    deprecation_horizon: event.payload[:deprecation_horizon],
  )
end