module ViewComponent::Instrumentation

def self.included(mod)

def self.included(mod)
  mod.prepend(self) unless ancestors.include?(ViewComponent::Instrumentation)
end

def render_in(view_context, &block)

def render_in(view_context, &block)
  ActiveSupport::Notifications.instrument(
    "!render.view_component",
    {
      name: self.class.name,
      identifier: self.class.identifier
    }
  ) do
    super(view_context, &block)
  end
end