module Airbrake

def configure

Other tags:
    Note: - There's no way to read config values outside of this library

Raises:
  • (Airbrake::Error) - when either +project_id+ or +project_key+
  • (Airbrake::Error) - when trying to reconfigure already

Returns:
  • (void) -

Other tags:
    Yieldparam: config -

Other tags:
    Yield: - The configuration object
def configure
  yield config = Airbrake::Config.instance
  raise Airbrake::Error, config.validation_error_message unless config.valid?
  Airbrake::Loggable.instance = Airbrake::Config.instance
  @performance_notifier = PerformanceNotifier.new
  @notice_notifier = NoticeNotifier.new
  @deploy_notifier = DeployNotifier.new
end