|
@ -8,8 +8,8 @@ return unless Rails.application.server? |
|
|
def build_instrumentation_config |
|
|
def build_instrumentation_config |
|
|
{ |
|
|
{ |
|
|
action_controller: true, |
|
|
action_controller: true, |
|
|
action_view: Live::Constants::ACTION_VIEW |
|
|
|
|
|
# active_record: Live::Constants::ACTIVE_RECORD |
|
|
|
|
|
|
|
|
action_view: Live::Constants::ACTION_VIEW, |
|
|
|
|
|
active_record: Live::Constants::ACTIVE_RECORD |
|
|
}.map do |key, value| |
|
|
}.map do |key, value| |
|
|
key if value |
|
|
key if value |
|
|
end.compact |
|
|
end.compact |
|
@ -27,6 +27,9 @@ Rails.configuration.after_initialize do |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
Rails.autoloaders.main.on_load('ApplicationController') do |
|
|
Rails.autoloaders.main.on_load('ApplicationController') do |
|
|
Rails.logger.debug 'Zeitwerk RELOAD!' |
|
|
|
|
|
|
|
|
Rails.logger.info ' ', dimensions: Semantic::FancyDimensions.new(rails: '╔═╗', before: 1) |
|
|
|
|
|
Rails.logger.fatal 'Zeitwerk RELOAD!', dimensions: Semantic::FancyDimensions.new(rails: '╠█╣') |
|
|
|
|
|
Rails.logger.info ' ', dimensions: Semantic::FancyDimensions.new(rails: '╚═╝') |
|
|
|
|
|
|
|
|
Semantic::Instrumentalizer.activate(*build_instrumentation_config) |
|
|
Semantic::Instrumentalizer.activate(*build_instrumentation_config) |
|
|
end |
|
|
end |