ViewComponent gem

AppSignal for RubyThis feature requires version 3.7.5 or higher.

The AppSignal gem can instrument events emitted by the ViewComponent Ruby gem.

In order for AppSignal to be able to instrument these events, ViewComponent must be configured to emit these events. For example, in your config/application.rb file:

# config/application.rb module MyRailsApp class Application < Rails::Application # add the following lines config.view_component.instrumentation_enabled = true config.view_component.use_deprecated_instrumentation_name = false end end

Events for ViewComponent components rendered by your application will appear in the event timeline of your application's performance actions.