lib/sapience/configuration.rb in sapience-2.12 vs lib/sapience/configuration.rb in sapience-2.13

- old
+ new

@@ -7,11 +7,11 @@ class Configuration attr_reader :default_level, :backtrace_level, :backtrace_level_index attr_writer :host attr_accessor :app_name, :ap_options, :appenders, :log_executor, :filter_parameters, :metrics, :error_handler, :silent_active_record, :silent_rails, :silent_rack, - :rails_ac_metrics + :rails_ac_metrics, :grape_metrics SUPPORTED_EXECUTORS = %i(single_thread_executor immediate_executor).freeze DEFAULT = { log_level: :info, host: nil, @@ -23,10 +23,11 @@ filter_parameters: %w(password password_confirmation), silent_active_record: false, silent_rails: false, silent_rack: false, rails_ac_metrics: true, + grape_metrics: true, }.freeze # Initial default Level for all new instances of Sapience::Logger def initialize(options = {}) # rubocop:disable AbcSize fail ArgumentError, "options need to be a hash #{options.inspect}" unless options.is_a?(Hash) @@ -44,10 +45,11 @@ self.metrics = @options[:metrics] self.error_handler = @options[:error_handler] self.silent_active_record = @options[:silent_active_record] self.silent_rails = @options[:silent_rails] self.silent_rack = @options[:silent_rack] - self.rails_ac_metrics = @options[:rails_ac_metrics] + self.rails_ac_metrics = @options[:rails_ac_metrics] + self.grape_metrics = @options[:grape_metrics] end # Sets the global default log level def default_level=(level) @default_level = level