class ElasticAPM::CentralConfig

def fetch_and_apply_config

def fetch_and_apply_config
  @promise =
    Concurrent::Promise
    .execute { fetch_config }
    .on_success { |resp| handle_success(resp) }
    .rescue { |err| handle_error(err) }
end