module ViewComponent::Instrumentation
def self.included(mod)
def self.included(mod) mod.prepend(self) unless ancestors.include?(ViewComponent::Instrumentation) end
def notification_name
def notification_name return "!render.view_component" if ViewComponent::Base.config.use_deprecated_instrumentation_name "render.view_component" end
def render_in(view_context, &block)
def render_in(view_context, &block) ActiveSupport::Notifications.instrument( notification_name, { name: self.class.name, identifier: self.class.identifier } ) do super end end