class Airbrake::PerformanceNotifier

def check_configuration(metric)

Experimental RBS support (using type sampling data from the type_fusion project).

def check_configuration: (Airbrake::Query metric) -> Airbrake::Promise

This signature was generated using 4 samples from 1 application.

def check_configuration(metric)
  promise = @config.check_configuration
  return promise if promise.rejected?
  promise = @config.check_performance_options(metric)
  return promise if promise.rejected?
  if metric.timing && metric.timing == 0
    return Promise.new.reject(':timing cannot be zero')
  end
  Promise.new
end