123456789_123456789_123456789_123456789_123456789_

Class: Rails::StructuredEventSubscriber

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

Class Attribute Summary

::ActiveSupport::StructuredEventSubscriber - Inherited

::ActiveSupport::Subscriber - Inherited

.namespace, .notifier, .subscriber,
.event_method_names

::Method names for the ::String patterns attached on this class, frozen and replaced on change so that it can be read concurrently and from other Ractors.

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.

#emitting?

Whether any event reporter subscriber would currently consume an event with the given name.

#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