Skip to content

Instantly share code, notes, and snippets.

@tmaier
Created July 31, 2024 21:43
Show Gist options
  • Save tmaier/7cf0b266c35ff605a705b702298cc481 to your computer and use it in GitHub Desktop.
Save tmaier/7cf0b266c35ff605a705b702298cc481 to your computer and use it in GitHub Desktop.

AppSignal issue #1222

$ bundle exec ruby before.rb 
render_partial.action_view
render_template.action_view
instantiation.active_record
sql.active_record
search.elasticsearch
request.faraday
sql.dry
sql.sequel
ViewComponent formatter not foun
$ bundle exec ruby after.rb
render_partial.action_view
render_template.action_view
instantiation.active_record
sql.active_record
search.elasticsearch
request.faraday
sql.dry
sql.sequel
render.view_component
!render.view_component
ViewComponent formatter found
``
require 'rails'
require 'view_component'
require 'appsignal'
puts Appsignal::EventFormatter.formatters.keys
if Appsignal::EventFormatter.formatters.key?('render.view_component')
puts 'ViewComponent formatter found'
else
puts 'ViewComponent formatter not found'
end
require 'rails'
require 'appsignal'
require 'view_component'
puts Appsignal::EventFormatter.formatters.keys
if Appsignal::EventFormatter.formatters.key?('render.view_component')
puts 'ViewComponent formatter found'
else
puts 'ViewComponent formatter not found'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment