class Airbrake::RemoteSettings::Callback

@since v5.0.2
@api private
updates the local config according to the data.
Callback is a class that provides a callback for the config poller, which

def call(data)

Returns:
  • (void) -

Parameters:
  • data (Airbrake::RemoteSettings::SettingsData) --
def call(data)
  @config.logger.debug do
    "#{LOG_LABEL} applying remote settings: #{data.to_h}"
  end
  @config.error_host = data.error_host if data.error_host
  @config.apm_host = data.apm_host if data.apm_host
  process_error_notifications(data)
  process_performance_stats(data)
end

def initialize(config)

def initialize(config)
  @config = config
  @orig_error_notifications = config.error_notifications
  @orig_performance_stats = config.performance_stats
end

def process_error_notifications(data)

def process_error_notifications(data)
  return unless @orig_error_notifications
  @config.error_notifications = data.error_notifications?
end

def process_performance_stats(data)

def process_performance_stats(data)
  return unless @orig_performance_stats
  @config.performance_stats = data.performance_stats?
end